public class CMParms
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
CMParms.DelimiterChecker |
An overrideable class for supplying a delimiter determination tool
|
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
FORMAT_EMPTY |
constant value representing an always empty miscText/parms format.
|
static java.lang.String |
FORMAT_UNDEFINED |
constant value representing an undefined/unimplemented miscText/parms format.
|
static boolean[] |
PUNCTUATION_TABLE |
|
static CMParms.DelimiterChecker |
spaceDelimiter |
Example delimeter checker for spaces
|
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String[] |
appendToArray(java.lang.String[] front,
java.lang.String[] back) |
Appends the given two arrays together.
|
static <K> void |
appendToList(java.util.List<K> lst,
java.util.Enumeration<K> e) |
Append items from an enumerator to a list
|
static <K> void |
appendToList(java.util.List<K> lst,
java.util.Iterator<K> e) |
Append items from an iterator to a list
|
static java.lang.String |
cleanBit(java.lang.String s) |
This method removes any surrounding single quotes or spaces, and
replaces any remaining single quotes with input-friendly fake
single quotes (`).
|
static java.util.List<java.lang.String> |
cleanParameterList(java.lang.String str) |
Parses the given string space-delimited, with respect for quoted
strings.
|
static boolean[] |
combine(boolean[] strs1,
boolean[] strs2) |
Combine two boolean arrays into a single one.
|
static int[] |
combine(int[] strs1,
int[] strs2) |
Combine two int arrays into a single one.
|
static java.lang.Object[] |
combine(java.lang.Object[]... objs) |
Combine object arrays into a single one.
|
static java.lang.String[] |
combine(java.lang.String[] strs1,
java.lang.String[] strs2) |
Combine two string arrays into a single one.
|
static java.lang.String |
combine(java.util.List<?> commands) |
Returns a string containing the given objects, with toString()
called, and now space delimited.
|
static java.lang.String |
combine(java.util.List<?> commands,
int startAt) |
Returns a string containing the given objects, with toString()
called, and now space delimited.
|
static java.lang.String |
combine(java.util.List<?> commands,
int startAt,
int endAt) |
Returns a string containing the given objects, with toString()
called, and now space delimited.
|
static java.lang.String |
combine(java.util.Set<?> flags) |
Returns a string containing the given objects, with toString()
called, and now space delimited.
|
static java.lang.String |
combineEQParms(java.util.Map<java.lang.String,?> parms,
char delimiter) |
Given a key/value parameter map, returns a string that is reparseable in a given
delimited way as KEY=VLUE, adding double quotes if any value has the delimiter.
|
static java.lang.String |
combineQuoted(java.util.List<?> commands,
int startAt) |
Returns a string containing the given objects, with toString()
called, and now delimited by spaces.
|
static java.lang.String |
combineQuoted(java.util.List<?> commands,
int startAt,
int endAt) |
Returns a string containing the given objects, with toString()
called, and now space delimited.
|
static java.lang.String |
combineWith(java.util.List<?> commands,
char withChar) |
Returns a string containing the given objects, with toString()
called, and now delimited by the character given.
|
static java.lang.String |
combineWith(java.util.List<?> commands,
char withChar,
int startAt,
int endAt) |
Returns a string containing the given objects, with toString()
called, and now delimited by the character given.
|
static java.lang.String |
combineWith(java.util.List<?> commands,
java.lang.String withSeparator) |
Returns a string containing the given objects, with toString()
called, and now delimited by the string given.
|
static java.lang.String |
combineWith(java.util.Set<?> commands,
char withChar) |
Returns a string containing the given objects, with toString()
called, and now delimited by the character given.
|
static java.lang.String |
combineWith(java.util.Set<?> commands,
java.lang.String withSeparator) |
Returns a string containing the given objects, with toString()
called, and now delimited by the string given.
|
static java.lang.String |
combineWithTabs(java.util.List<?> commands,
int startAt) |
Returns a string containing the given objects, with toString()
called, and now delimited by tab characters.
|
static java.lang.String |
combineWithX(java.util.List<?> commands,
char delimiter,
int startAt) |
Returns a string containing the given objects, with toString()
called, and now delimited by the given X character.
|
static java.lang.String |
combineWithX(java.util.List<?> commands,
java.lang.String delimiter,
int startAt) |
Returns a string containing the given objects, with toString()
called, and now delimited by the given X string.
|
static java.lang.String |
combineWSpaces(java.lang.Object[] commands) |
Returns a string containing the given object, with toString()
called, and now space delimited.
|
static boolean |
compareRange(java.nio.ByteBuffer buf,
byte[] bytes,
int pos) |
Returns true if the given bytebuffer, starting at the given pos, is the
same as the given byte array.
|
static int |
containIndex(java.nio.ByteBuffer buf,
byte[][] bytes,
int pos) |
Compares the given bytebuffer, starting at the given pos, with each byte array
in the given byte array array, and returns the top level index of which byte
array matches the bytebuffer at that position.
|
static boolean |
contains(byte[] theList,
byte b) |
Returns whether the given byte appears in the given list.
|
static boolean |
contains(char[] theList,
char c) |
Returns whether the given char appears in the given list.
|
static boolean |
contains(int[] theList,
int x) |
Returns whether the given int appears in the given list.
|
static boolean |
contains(int[] theList,
int[] xs) |
Returns whether any of the given ints appears in the given list.
|
static boolean |
contains(java.lang.Object[] theList,
java.lang.Object obj) |
Returns whether the given Object appears in the given list.
|
static boolean |
contains(java.lang.Object[] theList,
java.lang.Object[] objs) |
Returns whether any of the given given Objects appears in the given list.
|
static boolean |
contains(java.lang.String[] theList,
java.lang.String str) |
Returns whether the given string appears in the given list.
|
static boolean |
contains(java.lang.String theList,
java.lang.String str) |
Returns whether the given string appears in the given list.
|
static boolean |
contains(java.util.Enumeration<? extends java.lang.Object> e,
java.lang.Object obj) |
Returns whether the given Object appears in the given enumeration of Objects.
|
static boolean |
contains(java.util.Enumeration<java.lang.String> e,
java.lang.String str) |
Returns whether the given string appears in the given enumeration of strings.
|
static boolean |
containsAsString(java.lang.Object[] theList,
java.lang.Object obj) |
Returns whether the given Object appears in the given list, after
calling toString on both the list object and the given object
|
static boolean |
containsIgnoreCase(java.lang.String[] theList,
java.lang.String str) |
Returns whether the given string appears in the given list.
|
static boolean |
containsIgnoreCase(java.util.List<?> theList,
java.lang.String str) |
Returns whether the given string appears in the given list.
|
static java.util.List<java.lang.Object> |
copyFlattenList(java.util.List<?> V) |
Flattens the given list by returning a new list will all of the
objects in it.
|
static CMParms.DelimiterChecker |
createDelimiter(char[] chars) |
Create a DelimiterChecker from the given set of characters that will
be the delimiters.
|
static java.lang.String |
delParmLong(java.lang.String text,
java.lang.String key) |
This method is a sloppy, forgiving method removing KEY=VALUE value pair from a string.
|
static java.lang.String |
delParmStr(java.lang.String text,
java.lang.String key) |
This method is a sloppy, forgiving method removing KEY=VALUE value pair from a string.
|
static boolean |
endsAnyWith(java.lang.String[] theList,
java.lang.String str) |
Returns true if any string in string array ends with
the given string.
|
static boolean |
endsAnyWithIgnoreCase(java.lang.String[] theList,
java.lang.String str) |
Returns true if any string in string array ends with
the given string.
|
static int |
endsWith(java.lang.String[] theList,
java.lang.String str) |
Returns the index of the string in the string array that ends with
the given string.
|
static int |
endsWithIgnoreCase(java.lang.String[] theList,
java.lang.String str) |
Returns the index of the string in the string array that ends with
the given string.
|
static int[] |
endsWiths(java.lang.String[] theList,
java.lang.String str) |
Returns the indexes of the string in the string array that ends with
the given string.
|
static boolean |
equals(byte[] x,
int i,
byte[] y) |
Returns whether given bytes in the given array at the given index
are the same as the bytes in the other given array
|
static java.lang.String |
getBit(java.lang.String s,
int which) |
Returns the string bit at the given 0-based index, which may still have its
single quotes surrounding it.
|
static java.lang.String |
getCleanBit(java.lang.String s,
int which) |
Returns the string bit at the given 0-based index, cleaned of quotes.
|
static java.lang.String[] |
getCleanBits(java.lang.String s) |
Return an entire line of MOBPROG bits
|
static boolean |
getParmBool(java.lang.String text,
java.lang.String key,
boolean defaultValue) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static boolean |
getParmCompare(java.lang.String text,
java.lang.String key,
int value,
char[] comparatorFound) |
This method is a sloppy, forgiving method doing KEY>=[VALUE] value searches in a string.
|
static double |
getParmDouble(java.lang.String text,
java.lang.String key,
double defaultValue) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static double |
getParmDoublePlus(java.lang.String text,
java.lang.String key) |
This method is a sloppy, forgiving method doing KEY+[DBL] or KEY-[DBL] value searches
in a string.
|
static int |
getParmInt(java.lang.String text,
java.lang.String key,
int defaultValue) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static long |
getParmLong(java.lang.String text,
java.lang.String key,
long defaultValue) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static int |
getParmPlus(java.lang.String text,
java.lang.String key) |
This method is a sloppy, forgiving method doing KEY+[INT] or KEY-[INT] value searches
in a string.
|
static java.lang.String |
getParmStr(java.lang.String text,
java.lang.String key,
java.lang.String defaultVal) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static java.lang.String[] |
getParmStrs(java.lang.String text,
java.lang.String key,
java.lang.String defaultVal) |
This method is a sloppy, forgiving method doing KEY=VALUE value searches in a string.
|
static java.lang.String |
getPastBit(java.lang.String s,
int which) |
Returns the remainder of the string after the string bit at the
given 0-based index, which may still have single quotes.
|
static java.lang.String |
getPastBitClean(java.lang.String s,
int which) |
Returns the remainder of the string after the string bit at the
given 0-based index, cleaned of quotes.
|
static int |
indexOf(byte[] theList,
byte x) |
Returns the index of the given byte in the given array.
|
static int |
indexOf(byte[] theList,
byte[] x) |
Returns the index of the given bytes in the given array.
|
static int |
indexOf(byte[] theList,
byte[] x,
int startIndex) |
Returns the index of the given bytes in the given array.
|
static int |
indexOf(byte[] theList,
byte x,
int startIndex) |
Returns the index of the given byte in the given array.
|
static int |
indexOf(int[] theList,
int x) |
Returns the index of the given number in the given array.
|
static int |
indexOf(int[] theList,
int x,
int startIndex) |
Returns the index of the given number in the given array.
|
static int |
indexOf(long[] theList,
long x) |
Returns the index of the given number in the given array.
|
static int |
indexOf(long[] theList,
long x,
int startIndex) |
Returns the index of the given number in the given array.
|
static int |
indexOf(java.lang.Object[] theList,
java.lang.Object obj) |
Returns the index of the given Object appears in the given list.
|
static int |
indexOf(java.lang.Object[] theList,
java.lang.Object obj,
int startIndex) |
Returns the index of the given Object appears in the given list.
|
static int |
indexOf(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the given string in the given string array.
|
static int |
indexOf(java.lang.String[] stringList,
java.lang.String str,
int startIndex) |
Returns the index of the given string in the given string array.
|
static int |
indexOf(java.util.Enumeration<?> e,
java.lang.Object key) |
Iterates through the given enumeration, returning which the number of
times it must be iterated through before the given object is found
|
static int |
indexOf(java.util.Iterator<?> i,
java.lang.Object key) |
Iterates through the given Iterator, returning which the number of
times it must be iterated through before the given object is found
|
static int |
indexOf(java.util.List<?> theList,
java.lang.Object obj,
int startIndex) |
Returns the index of the given Object appears in the given list.
|
static int |
indexOfAsString(java.lang.Object[] theList,
java.lang.Object obj) |
Returns the index of the given Object appears in the given list,
after calling toString on both the obj given and the list Object.
|
static int |
indexOfEndsWith(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the string in the given string array that ends
with the given one.
|
static int |
indexOfEndsWith2(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the string in the given string array that the given string
ends with.
|
static int |
indexOfFirst(int[] theList,
int[] xs) |
Returns the index of the first of the given numbers in the given array.
|
static int |
indexOfFirst(java.lang.Object[] theList,
java.lang.Object[] objs) |
Returns the index of the first of the given Objects in the given array.
|
static int |
indexOfIgnoreCase(java.lang.Object[] stringList,
java.lang.String str) |
Returns the index of the given string in the given string array.
|
static int |
indexOfIgnoreCase(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the given string in the given string array.
|
static int |
indexOfIgnoreCase(java.util.Enumeration<?> e,
java.lang.String str) |
Iterates through the given enumeration, returning which the number of
times it must be iterated through before the given string is found by
calling toString() on each object, and comparing their case insensitive
values.
|
static int |
indexOfIgnoreCase(java.util.Iterator<?> i,
java.lang.String str) |
Iterates through the given Iterator, returning which the number of
times it must be iterated through before the given string is found by
calling toString() on each object, and comparing their case insensitive
values.
|
static int |
indexOfIgnoreCase(java.util.List<?> theList,
java.lang.String str) |
Returns the index of the given string in the list by calling toString()
and comparing their case insensitive values.
|
static int |
indexOfStartsWith(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the string in the given string array that starts
with the given one.
|
static int |
indexOfStartsWith2(java.lang.String[] stringList,
java.lang.String str) |
Returns the index of the string in the given string array that the given string
starts with.
|
static CMParms |
instance() |
|
static int |
numBits(java.lang.String s) |
Returns the number of MOBPROG 'Bits' in this string.
|
static int |
numContains(byte[] theList,
byte x) |
Returns the number of the given items in the given array
It is case sensitive.
|
static int |
numContains(int[] theList,
int x) |
Returns the number of the given items in the given array
It is case sensitive.
|
static int |
numContains(long[] theList,
long x) |
Returns the number of the given items in the given array
It is case sensitive.
|
static int |
numContains(java.lang.Object[] theList,
java.lang.Object obj) |
Returns the number of the given items in the given array
It is case sensitive.
|
static int |
numContains(java.lang.String[] theList,
java.lang.String str) |
Returns the number of the given items in the given array
It is case sensitive.
|
static int |
numContains(java.util.List<?> theList,
java.lang.Object obj) |
Returns the number of the given items in the given array
It is case sensitive.
|
static java.util.Vector<java.lang.String> |
parse(java.lang.String str) |
Parses the given string space-delimited, with respect for quoted
strings.
|
static java.util.List<java.lang.String> |
parseAny(java.lang.String s,
char delimiter,
boolean ignoreNulls) |
Parses the given string by the given delimiter.
|
static java.util.List<java.lang.String> |
parseAny(java.lang.String s,
char delimiter,
boolean ignoreNulls,
boolean safe) |
Parses the given string by the given delimiter.
|
static java.util.List<java.lang.String> |
parseAny(java.lang.String s,
java.lang.String delimeter,
boolean ignoreNulls) |
Parses the given string by the given delimiter.
|
static java.util.List<java.lang.String> |
parseAnyIgnoreCase(java.lang.String s,
java.lang.String delimeter,
boolean ignoreNulls) |
Parses the given string by the given delimiter, ignoring the delimeter case.
|
static java.util.List<java.lang.String> |
parseCommandFlags(java.lang.String s,
java.lang.String[] flags) |
Returns a list of those flag strings that appear in the given string.
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
parseCommaParenList(java.lang.String list) |
This method is for parsing comma-delimited lists of ids, with optional parameters
in parenthesis after the id.
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
parseCommaParenListLow(java.lang.String list) |
This method is for parsing comma-delimited lists of ids, with optional parameters
in parenthesis after the id.
|
static java.util.List<java.lang.String> |
parseCommas(java.lang.String s,
boolean ignoreNulls) |
Parses the given string comma-delimited.
|
static java.util.List<java.lang.String> |
parseCommasSafe(java.lang.String s,
boolean ignoreNulls) |
Parses the given string comma-delimited, handling escaped commas.
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
parseDelimitedParenList(java.lang.String list,
char delim,
boolean upKey) |
This method is for parsing given-delimited lists of ids, with optional parameters
in parenthis after the id.
|
static java.util.List<java.util.List<java.lang.String>> |
parseDoubleDelimited(java.lang.String text,
char delim1,
char delim2) |
Parses the given string into a two-dimensional list, using the two given delimiters
|
static java.util.List<java.lang.Enum<? extends java.lang.Enum>> |
parseEnumList(java.lang.Class<? extends java.lang.Enum> c,
java.lang.String s,
char delim) |
Parses the given string comma-delimited for the given enum obj
names.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseEQParms(java.lang.String parms) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in space-delimited fashion, respecting quotes value.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseEQParms(java.lang.String parms,
CMParms.DelimiterChecker delimiterCheck,
boolean upperCase) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in given-delimited fashion, respecting quotes value.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseEQParms(java.lang.String str,
java.lang.String[] parmList) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values, relying on the given parmList to provide possible [PARAM] values.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseEQParms(java.util.List<java.lang.String> parms,
int start,
int end) |
Parses the given strings in the given string list for [PARAM]=[VALUE] or
[PARAM]="[VALUE]" formatted key/pairv values in space-delimited fashion, respecting quotes value.
|
static PairList<java.lang.String,java.lang.String> |
parseEQParmsList(java.lang.String parms) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in space-delimited fashion, respecting quotes value.
|
static PairList<java.lang.String,java.lang.String> |
parseEQParmsList(java.lang.String parms,
CMParms.DelimiterChecker delimiterCheck,
boolean upperCase) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in given-delimited fashion, respecting quotes value.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseEQParmsLow(java.lang.String parms) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in space-delimited fashion, respecting quotes value.
|
static PairList<java.lang.String,java.lang.String> |
parseEQParmsLowList(java.lang.String parms) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values in space-delimited fashion, respecting quotes value.
|
static int[] |
parseIntList(java.lang.String s,
char delim) |
Parses the given string comma-delimited for an int array
|
static java.util.Map<java.lang.String,java.lang.String> |
parseKeyValueSlashListString(java.lang.String s) |
Parses the given string of the form KEY=VALUE/KEY=VALUE/etc into a new
String key/value map.
|
static long[] |
parseLongList(java.lang.String s,
char delim) |
Parses the given string comma-delimited for an long array
|
static java.util.Map<java.lang.String,java.lang.String> |
parseLooseParms(java.lang.String str,
java.lang.String[] parmList,
java.util.List<java.lang.String> errors) |
Parses the given string for [PARAM]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values, or + or - separated, relying on the given parmList to provide possible [PARAM] values.
|
static java.util.List<java.lang.String> |
parseSafeSemicolonList(java.lang.String list,
boolean ignoreNulls) |
Parses the given semicolon-delimited list of strings and returns
the list as a list.
|
static byte[] |
parseSemicolonByteList(java.lang.String str) |
Returns a byte array made from the semicolon-delimited list
of numeric values in the given string.
|
static java.util.List<java.lang.String> |
parseSemicolons(java.lang.String s,
boolean ignoreNulls) |
Parses the given string semicolon-delimited.
|
static java.util.List<java.lang.String> |
parseSentences(java.lang.String s) |
Parses the given string period-delimited.
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
parseSpaceParenList(java.lang.String list) |
This method is for parsing space-delimited lists of ids, with optional parameters
in parenthesis after the id.
|
static java.util.List<Pair<java.lang.String,java.lang.String>> |
parseSpaceParenListLow(java.lang.String list) |
This method is for parsing space-delimited lists of ids, with optional parameters
in parenthesis after the id.
|
static java.util.List<java.lang.String> |
parseSpaces(java.lang.String s,
boolean ignoreNulls) |
Parses the given string space-delimited.
|
static java.util.List<java.lang.String> |
parseSquiggleDelimited(java.lang.String s,
boolean ignoreNulls) |
Parses the given string squiggle-delimited.
|
static java.util.List<java.lang.String> |
parseSquiggles(java.lang.String s) |
Parses the given string squiggle-delimited.
|
static java.util.Map<java.lang.String,java.lang.String> |
parseStrictEQParms(java.lang.String str) |
Parses the given string for[PAREM1] [PARAM2]=[VALUE] or [PARAM]="[VALUE]" formatted key/pair
values.
|
static java.util.List<java.lang.String> |
parseTabs(java.lang.String s,
boolean ignoreNulls) |
Parses the given string tab-delimited.
|
static java.lang.String |
quoteIfNecessary(java.lang.String str) |
Returns the given string, unless it contains a space, in which case
it returns the string with double-quotes around it.
|
static java.lang.String |
rest(java.lang.String commands,
int startAt) |
Returns a string containing the remainder of a string after the
given number of parts have been parsed out.
|
static boolean |
startsAnyWith(java.lang.String[] theList,
java.lang.String str) |
Returns true if any string in string array starts with
the given string.
|
static boolean |
startsAnyWithIgnoreCase(java.lang.String[] theList,
java.lang.String str) |
Returns true if any string in string array starts with
the given string.
|
static int |
startsWith(java.lang.String[] theList,
java.lang.String str) |
Returns the index of the string in the string array that starts with
the given string.
|
static int |
startsWithIgnoreCase(java.lang.String[] theList,
java.lang.String str) |
Returns the index of the string in the string array that starts with
the given string.
|
static java.lang.String |
toCMObjectListString(CMObject[] e) |
Converts the given Array of CMObjects to a comma-delimited list, with
spaces after each comma by calling ID() on each object.
|
static java.lang.String |
toCMObjectListString(java.util.Enumeration<? extends CMObject> e) |
Converts the given Enumeration CMObject to a comma-delimited list, with
spaces after each comma by calling ID() on each object.
|
static java.lang.String |
toCMObjectListString(java.util.Iterator<? extends CMObject> e) |
Converts the given Iterator CMObject to a comma-delimited list, with
spaces after each comma by calling ID() on each object.
|
static double[] |
toDoubleArray(java.util.List<?> V) |
Converts the given object list to a double array by calling
"toString()" on all the objects and then converting those to doubles.
|
static java.lang.String |
toEnvironmentalListString(java.util.Enumeration<? extends Environmental> e) |
Converts the given Enumeration objects to a comma-delimited list, with
spaces after each comma by calling name() on each object.
|
static java.lang.String |
toEqListString(java.util.Map<?,?> V) |
Returns the key/value pairs in the given map as a single string of the form
KEY=VALUE KEY="VALUE" etc...
|
static java.lang.String |
toEqListString(java.util.Map<?,?> V,
char delimiter) |
Returns the key/value pairs in the given map as a single string of the form
KEY=VALUE KEY="VALUE" etc...
|
static java.util.List<java.lang.String> |
toIDList(java.util.Collection<? extends CMObject> V) |
Converts the cmobject objects in the given Collection to a String List
by calling ID() on each object.
|
static java.util.List<java.lang.String> |
toIDList(java.util.Set<? extends CMObject> V) |
Converts the cmobject objects in the given Set to a String List
by calling ID() on each object.
|
static int[] |
toIntArray(java.util.List<?> V) |
Converts the given object list to a int array by calling
"toString()" on all the objects and then converting those to ints.
|
static java.lang.String |
toKeyValueSlashListString(java.util.Map<java.lang.String,?> V) |
Returns the keys and values in the given may in the form
KEY=VALUE/KEY=VALUE/etc..
|
static java.lang.String |
toListString(boolean[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(byte[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(char[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma, casting the characters as numbers.
|
static java.lang.String |
toListString(double[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(int[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(long[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(short[] V) |
Converts the given array to a comma-delimited list string, with
spaces after each comma.
|
static java.lang.String |
toListString(java.lang.Object[] V) |
Converts the given Array to a comma-delimited list, with
spaces after each comma by calling toString() on each object.
|
static java.lang.String |
toListString(java.lang.String[] V) |
Converts the given Array to a comma-delimited list, with
spaces after each comma.
|
static java.lang.String |
toListString(java.util.Enumeration<?> e) |
Converts the given Enumeration objects to a comma-delimited list, with
spaces after each comma by calling toString() on each object.
|
static java.lang.String |
toListString(java.util.Iterator<?> e) |
Converts the given Iterator objects to a comma-delimited list, with
spaces after each comma by calling toString() on each object.
|
static java.lang.String |
toListString(java.util.List<?> V) |
Converts the given List to a comma-delimited list string, with
spaces after each comma, by calling toString() on each object.
|
static java.lang.String |
toListString(java.util.Set<?> V) |
Converts the given Set to a comma-delimited list string, with
spaces after each comma, by calling toString() on each object.
|
static long[] |
toLongArray(java.util.List<?> V) |
Converts the given object list to a long array by calling
"toString()" on all the objects and then converting those to longs.
|
static java.util.List<java.lang.String> |
toNameList(java.util.Enumeration<? extends Environmental> V) |
Converts the environmental objects in the given Enumeration to a String List
by calling name() on each object.
|
static java.util.List<java.lang.String> |
toNameList(java.util.Set<? extends Environmental> V) |
Converts the environmental objects in the given Set to a String List
by calling name() on each object.
|
static java.util.Map<java.lang.String,java.lang.Object> |
toObjectStringMap(java.lang.Object[] c) |
Maps all the objects by to a name/value map, by calling toString()
on each object.
|
static java.lang.String |
toSafeSemicolonListString(java.lang.Object[] list) |
Converts the given objects to their string values
and returns them, semicolon delimited.
|
static java.lang.String |
toSafeSemicolonListString(java.util.List<?> list) |
Converts the given objects to their string values
and returns them, semicolon delimited.
|
static java.lang.String |
toSemicolonListString(byte[] bytes) |
Converts the given bytes to their numeric string values
and returns them, semicolon delimited.
|
static java.lang.String |
toSemicolonListString(java.lang.Object[] bytes) |
Converts the given objects to their string values
and returns them, semicolon delimited.
|
static java.lang.String |
toSemicolonListString(java.lang.String[] bytes) |
Returns the given strings combined, semicolon delimited.
|
static java.lang.String |
toSemicolonListString(java.util.Enumeration<?> bytes) |
Converts the given objects to their string values
and returns them, semicolon delimited.
|
static java.lang.String |
toSemicolonListString(java.util.List<?> bytes) |
Converts the given objects to their string values
and returns them, semicolon delimited.
|
static java.lang.String |
toString(java.lang.Object o) |
Converts the given object to a string.
|
static java.lang.String[] |
toStringArray(int[] O) |
Converts the given int array to a string array by calling
Integer.toString on all the long
|
static java.lang.String[] |
toStringArray(long[] O) |
Converts the given long array to a string array by calling
Long.toString on all the long
|
static java.lang.String[] |
toStringArray(java.lang.Object[] O) |
Converts the given object array to a string array by calling
"toString()" on all the objects
|
static java.lang.String[] |
toStringArray(java.util.List<?> V) |
Converts the given object list to a string array by calling
"toString()" on all the objects
|
static java.lang.String[] |
toStringArray(java.util.Set<?> V) |
Converts the objects in the given Set to a String array
by calling toString() on each object.
|
static java.lang.String[] |
toStringArraySingle(java.lang.Object[][] O,
int dim) |
Converts the given object array to a string single dim array by calling
"toString()" on all the objects at the given dimension
|
static java.util.Set<java.lang.String> |
toStringSet(java.util.List<?> V,
java.util.Set<java.lang.String> S) |
Copies the objects in the given list into the given string set
by calling toString() on all the object
|
static java.lang.String |
toTightListString(boolean[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(byte[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(char[] V) |
Converts the given array to a comma-delimited list string,
casting the characters as numbers.
|
static java.lang.String |
toTightListString(double[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(int[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(long[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(short[] V) |
Converts the given array to a comma-delimited list string.
|
static java.lang.String |
toTightListString(java.util.List<?> V) |
Converts the given List to a comma-delimited list string,
by calling toString() on each object.
|
static java.lang.String |
toTightListString(java.util.Set<?> V) |
Converts the given Set to a comma-delimited list string,
by calling toString() on each object.
|
public static boolean[] PUNCTUATION_TABLE
public static final CMParms.DelimiterChecker spaceDelimiter
public static final java.lang.String FORMAT_UNDEFINED
public static final java.lang.String FORMAT_EMPTY
public static final CMParms instance()
public static final CMParms.DelimiterChecker createDelimiter(char[] chars)
chars
- the delimiters as a char arrayCMParms.DelimiterChecker
,
parseEQParms(String, DelimiterChecker, boolean)
public static final java.lang.String[] combine(java.lang.String[] strs1, java.lang.String[] strs2)
strs1
- the first arraystrs2
- the second arraypublic static final java.lang.Object[] combine(java.lang.Object[]... objs)
objs
- the arrayspublic static final int[] combine(int[] strs1, int[] strs2)
strs1
- the first arraystrs2
- the second arraypublic static final boolean[] combine(boolean[] strs1, boolean[] strs2)
strs1
- the first arraystrs2
- the second arraypublic static final java.lang.String quoteIfNecessary(java.lang.String str)
str
- the string to check and returnpublic static final java.lang.String combine(java.util.List<?> commands)
commands
- the objects to combine into a single stringpublic static final java.lang.String combineWSpaces(java.lang.Object[] commands)
commands
- the objects to combine into a single stringpublic static final java.lang.String combine(java.util.List<?> commands, int startAt)
commands
- the objects to combine into a single stringstartAt
- the index in the list to start at.public static final java.lang.String rest(java.lang.String commands, int startAt)
commands
- the full stringstartAt
- the index in the list to start at.public static final java.lang.String combine(java.util.List<?> commands, int startAt, int endAt)
commands
- the objects to combine into a single stringstartAt
- the index in the list to start at.endAt
- the index in the list to end withpublic static final java.lang.String combineWith(java.util.List<?> commands, char withChar, int startAt, int endAt)
commands
- the objects to combine into a single stringwithChar
- the character to use as a delimiterstartAt
- the index in the list to start at.endAt
- the index in the list to end withpublic static final java.lang.String combineWith(java.util.List<?> commands, char withChar)
commands
- the objects to combine into a single stringwithChar
- the character to use as a delimiterpublic static final java.lang.String combineWith(java.util.Set<?> commands, char withChar)
commands
- the objects to combine into a single stringwithChar
- the character to use as a delimiterpublic static final java.lang.String combineQuoted(java.util.List<?> commands, int startAt, int endAt)
commands
- the objects to combine into a single stringstartAt
- the index in the list to start at.endAt
- the index in the list to end withpublic static final java.lang.String combineWith(java.util.List<?> commands, java.lang.String withSeparator)
commands
- the objects to combine into a single stringwithSeparator
- the string to use as a delimiterpublic static final java.lang.String combineWith(java.util.Set<?> commands, java.lang.String withSeparator)
commands
- the objects to combine into a single stringwithSeparator
- the string to use as a delimiterpublic static final java.lang.String combineQuoted(java.util.List<?> commands, int startAt)
commands
- the objects to combine into a single stringstartAt
- the first object in the list to usepublic static final java.lang.String combineWithTabs(java.util.List<?> commands, int startAt)
commands
- the objects to combine into a single stringstartAt
- the first object in the list to usepublic static final java.lang.String combineWithX(java.util.List<?> commands, java.lang.String delimiter, int startAt)
commands
- the objects to combine into a single stringdelimiter
- the delimiter to usestartAt
- the first object in the list to usepublic static final java.lang.String combineWithX(java.util.List<?> commands, char delimiter, int startAt)
commands
- the objects to combine into a single stringdelimiter
- the delimiter to usestartAt
- the first object in the list to usepublic static final java.lang.String combine(java.util.Set<?> flags)
flags
- the objects to combine into a single stringpublic static final java.util.List<java.lang.String> cleanParameterList(java.lang.String str)
str
- the string to parsepublic static final java.util.Vector<java.lang.String> parse(java.lang.String str)
str
- the string to parsepublic static final java.util.List<java.lang.String> parseCommas(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (,,)public static final java.util.List<java.lang.String> parseCommasSafe(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (,,)public static final java.util.List<java.lang.String> parseCommandFlags(java.lang.String s, java.lang.String[] flags)
s
- the string to searchflags
- the set of flags to look forpublic static final java.util.List<java.lang.String> parseTabs(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (-tab-tab)public static final java.util.List<java.lang.String> parseAny(java.lang.String s, java.lang.String delimeter, boolean ignoreNulls)
s
- the string to parsedelimeter
- the delimeter to useignoreNulls
- don't include any of the empty entries (-delim-delim)public static final java.util.List<java.lang.String> parseAnyIgnoreCase(java.lang.String s, java.lang.String delimeter, boolean ignoreNulls)
s
- the string to parsedelimeter
- the delimeter to useignoreNulls
- don't include any of the empty entries (-delim-delim)public static final java.util.List<java.lang.String> parseAny(java.lang.String s, char delimiter, boolean ignoreNulls, boolean safe)
s
- the string to parsedelimiter
- the delimiter to useignoreNulls
- don't include any of the empty entries (-delim-delim)safe
- handle escaped delimiterspublic static final java.util.List<java.lang.String> parseAny(java.lang.String s, char delimiter, boolean ignoreNulls)
s
- the string to parsedelimiter
- the delimiter to useignoreNulls
- don't include any of the empty entries (-delim-delim)public static final java.util.List<java.lang.String> parseSquiggles(java.lang.String s)
s
- the string to parsepublic static final java.util.List<java.lang.Enum<? extends java.lang.Enum>> parseEnumList(java.lang.Class<? extends java.lang.Enum> c, java.lang.String s, char delim)
c
- the enum classs
- the string to parsedelim
- the delimiter to usepublic static final int[] parseIntList(java.lang.String s, char delim)
s
- the string to parsedelim
- the delimiter to usepublic static final long[] parseLongList(java.lang.String s, char delim)
s
- the string to parsedelim
- the delimiter to usepublic static final java.util.List<java.lang.String> parseSentences(java.lang.String s)
s
- the string to parsepublic static final java.util.List<java.lang.String> parseSquiggleDelimited(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (~~)public static final java.util.List<java.lang.String> parseSemicolons(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (;;)public static final java.util.List<java.lang.String> parseSpaces(java.lang.String s, boolean ignoreNulls)
s
- the string to parseignoreNulls
- don't include any of the empty entries (-space-space)public static final int numBits(java.lang.String s)
s
- the string to checkpublic static final java.lang.String cleanBit(java.lang.String s)
s
- the string to cleanpublic static final java.lang.String getCleanBit(java.lang.String s, int which)
s
- the string to parsewhich
- the bit index to returnpublic static final java.lang.String getPastBitClean(java.lang.String s, int which)
s
- the string to parsewhich
- the bit index to returnpublic static final java.lang.String getPastBit(java.lang.String s, int which)
s
- the string to parsewhich
- the bit index to returnpublic static final java.lang.String getBit(java.lang.String s, int which)
s
- the string to parsewhich
- the bit index to returnpublic static final java.lang.String[] getCleanBits(java.lang.String s)
s
- string to parsepublic static final java.lang.String getParmStr(java.lang.String text, java.lang.String key, java.lang.String defaultVal)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultVal
- the value to return if the key is not foundpublic static final java.lang.String[] getParmStrs(java.lang.String text, java.lang.String key, java.lang.String defaultVal)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultVal
- the value to return if the key is not foundpublic static final java.lang.String delParmStr(java.lang.String text, java.lang.String key)
text
- the string to searchkey
- the key to search for, case insensitivepublic static final boolean getParmCompare(java.lang.String text, java.lang.String key, int value, char[] comparatorFound)
text
- the string to searchkey
- the key to search for, case insensitivevalue
- the value to compare the found value againstcomparatorFound
- a one-dimensional array to contain the found comparatorpublic static final java.util.Map<java.lang.String,java.lang.String> parseEQParms(java.lang.String str, java.lang.String[] parmList)
str
- the unparsed stringparmList
- exhaustive list of all parameterspublic static final java.util.Map<java.lang.String,java.lang.String> parseLooseParms(java.lang.String str, java.lang.String[] parmList, java.util.List<java.lang.String> errors)
str
- the unparsed stringparmList
- exhaustive list of all parameterserrors
- an empty list to put errors in, or nullpublic static final java.util.Map<java.lang.String,java.lang.String> parseStrictEQParms(java.lang.String str)
str
- the unparsed stringpublic static final java.lang.String combineEQParms(java.util.Map<java.lang.String,?> parms, char delimiter)
parms
- the key/value pairsdelimiter
- the delimieter to use between key/pairspublic static final java.util.Map<java.lang.String,java.lang.String> parseEQParms(java.lang.String parms)
parms
- the string to parsepublic static final java.util.Map<java.lang.String,java.lang.String> parseEQParmsLow(java.lang.String parms)
parms
- the string to parsepublic static final PairList<java.lang.String,java.lang.String> parseEQParmsList(java.lang.String parms)
parms
- the string to parsepublic static final PairList<java.lang.String,java.lang.String> parseEQParmsLowList(java.lang.String parms)
parms
- the string to parsepublic static final java.util.Map<java.lang.String,java.lang.String> parseEQParms(java.lang.String parms, CMParms.DelimiterChecker delimiterCheck, boolean upperCase)
parms
- the string to parsedelimiterCheck
- the checker to determine if a character is the given delimiterupperCase
- make the keys uppercasepublic static final PairList<java.lang.String,java.lang.String> parseEQParmsList(java.lang.String parms, CMParms.DelimiterChecker delimiterCheck, boolean upperCase)
parms
- the string to parsedelimiterCheck
- the checker to determine if a character is the given delimiterupperCase
- make the keys uppercasepublic static final java.util.Map<java.lang.String,java.lang.String> parseEQParms(java.util.List<java.lang.String> parms, int start, int end)
parms
- the string list of parseable strings with key=value pairsstart
- the starting index in the list to useend
- the last index in the list to usepublic static final java.util.List<java.util.List<java.lang.String>> parseDoubleDelimited(java.lang.String text, char delim1, char delim2)
text
- the string to parsedelim1
- the 'outer' delimiterdelim2
- the 'inner' delimiterpublic static final java.util.List<Pair<java.lang.String,java.lang.String>> parseSpaceParenList(java.lang.String list)
list
- the list of things to parsepublic static final java.util.List<Pair<java.lang.String,java.lang.String>> parseSpaceParenListLow(java.lang.String list)
list
- the list of things to parsepublic static final java.util.List<Pair<java.lang.String,java.lang.String>> parseCommaParenList(java.lang.String list)
list
- the list of things to parsepublic static final java.util.List<Pair<java.lang.String,java.lang.String>> parseCommaParenListLow(java.lang.String list)
list
- the list of things to parsepublic static final java.util.List<Pair<java.lang.String,java.lang.String>> parseDelimitedParenList(java.lang.String list, char delim, boolean upKey)
list
- the list of things to parsedelim
- the delimitedupKey
- true to uppercase the keys, false to leave as-ispublic static final int getParmPlus(java.lang.String text, java.lang.String key)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulespublic static final double getParmDoublePlus(java.lang.String text, java.lang.String key)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulespublic static final double getParmDouble(java.lang.String text, java.lang.String key, double defaultValue)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultValue
- the value to return if the key is not foundpublic static final int getParmInt(java.lang.String text, java.lang.String key, int defaultValue)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultValue
- the value to return if the key is not foundpublic static final long getParmLong(java.lang.String text, java.lang.String key, long defaultValue)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultValue
- the value to return if the key is not foundpublic static final java.lang.String delParmLong(java.lang.String text, java.lang.String key)
text
- the string to searchkey
- the key to search for, case insensitivepublic static final boolean getParmBool(java.lang.String text, java.lang.String key, boolean defaultValue)
text
- the string to searchkey
- the key to search for, case insensitive, starts_with rulesdefaultValue
- the value to return if the key is not foundpublic static final java.lang.String[] toStringArray(java.util.List<?> V)
V
- the list to turn into a string arraypublic static final java.util.Set<java.lang.String> toStringSet(java.util.List<?> V, java.util.Set<java.lang.String> S)
V
- the listS
- the setpublic static final java.lang.String[] toStringArray(java.lang.Object[] O)
O
- the objects to turn into a string arraypublic static final java.lang.String[] toStringArraySingle(java.lang.Object[][] O, int dim)
O
- the objects to turn into a string arraydim
- the second-order dimension objects to usepublic static final java.lang.String[] toStringArray(long[] O)
O
- the longs to turn into a string arraypublic static final java.lang.String[] toStringArray(int[] O)
O
- the ints to turn into a string arraypublic static final long[] toLongArray(java.util.List<?> V)
V
- the list to turn into a long arraypublic static final double[] toDoubleArray(java.util.List<?> V)
V
- the list to turn into a double arraypublic static final int[] toIntArray(java.util.List<?> V)
V
- the list to turn into a int arraypublic static final java.lang.String toSemicolonListString(byte[] bytes)
bytes
- the bytes to returnpublic static final java.lang.String toSemicolonListString(java.lang.String[] bytes)
bytes
- the strings to returnpublic static final java.lang.String toSemicolonListString(java.lang.Object[] bytes)
bytes
- the objects as strings to returnpublic static final java.lang.String toSemicolonListString(java.util.Enumeration<?> bytes)
bytes
- the objects as strings to returnpublic static final java.lang.String toSemicolonListString(java.util.List<?> bytes)
bytes
- the objects as strings to returnpublic static final java.lang.String toSafeSemicolonListString(java.util.List<?> list)
list
- the objects as strings to returnpublic static final java.lang.String toSafeSemicolonListString(java.lang.Object[] list)
list
- the objects as strings to returnpublic static final java.util.List<java.lang.String> parseSafeSemicolonList(java.lang.String list, boolean ignoreNulls)
list
- semicolon-delimited listignoreNulls
- true to not return empty strings, false otherwisepublic static final byte[] parseSemicolonByteList(java.lang.String str)
str
- the semicolon-delimited decimal byte listpublic static final java.lang.String[] toStringArray(java.util.Set<?> V)
V
- the set to convertpublic static final java.util.List<java.lang.String> toIDList(java.util.Set<? extends CMObject> V)
V
- the set to convertpublic static final java.util.List<java.lang.String> toIDList(java.util.Collection<? extends CMObject> V)
V
- the Collection to convertpublic static final java.util.List<java.lang.String> toNameList(java.util.Set<? extends Environmental> V)
V
- the set to convertpublic static final java.util.List<java.lang.String> toNameList(java.util.Enumeration<? extends Environmental> V)
V
- the enumeration to convertpublic static final java.lang.String toString(java.lang.Object o)
o
- the object to convert to something stringypublic static final java.lang.String toListString(java.lang.String[] V)
V
- the array to convert to a stringpublic static final java.lang.String toListString(java.lang.Object[] V)
V
- the array to convert to a stringpublic static final java.lang.String toListString(java.util.Iterator<?> e)
e
- the Iterator to convert objects in to a stringpublic static final java.lang.String toListString(java.util.Enumeration<?> e)
e
- the Enumeration to convert objects in to a stringpublic static final java.lang.String toEnvironmentalListString(java.util.Enumeration<? extends Environmental> e)
e
- the Enumeration to convert environmentals in to a stringpublic static final java.lang.String toCMObjectListString(java.util.Enumeration<? extends CMObject> e)
e
- the Enumeration to convert CMObjects in to a stringpublic static final java.util.Map<java.lang.String,java.lang.Object> toObjectStringMap(java.lang.Object[] c)
c
- the list of objectspublic static final java.lang.String toCMObjectListString(CMObject[] e)
e
- the Array to convert CMObjects in to a stringpublic static final java.lang.String toCMObjectListString(java.util.Iterator<? extends CMObject> e)
e
- the Iterator to convert CMObjects in to a stringpublic static final java.lang.String toListString(long[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(short[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(boolean[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(byte[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(char[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(int[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(double[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toListString(java.util.List<?> V)
V
- the List to convert into a list stringpublic static final java.lang.String toListString(java.util.Set<?> V)
V
- the Set to convert into a list stringpublic static final java.lang.String toTightListString(long[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(short[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(boolean[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(byte[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(char[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(int[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(double[] V)
V
- the array to convert into a list stringpublic static final java.lang.String toTightListString(java.util.List<?> V)
V
- the List to convert into a list stringpublic static final java.lang.String toTightListString(java.util.Set<?> V)
V
- the Set to convert into a list stringpublic static final java.lang.String toKeyValueSlashListString(java.util.Map<java.lang.String,?> V)
V
- the map to convertpublic static final java.lang.String[] appendToArray(java.lang.String[] front, java.lang.String[] back)
front
- the front arrayback
- the back arraypublic static final <K> void appendToList(java.util.List<K> lst, java.util.Enumeration<K> e)
K
- anything you wantlst
- the list to add toe
- the enumerator to add frompublic static final <K> void appendToList(java.util.List<K> lst, java.util.Iterator<K> e)
K
- anything you wantlst
- the list to add toe
- the iterator to add frompublic static final java.util.Map<java.lang.String,java.lang.String> parseKeyValueSlashListString(java.lang.String s)
s
- the slash-keyvalue pairspublic static final java.lang.String toEqListString(java.util.Map<?,?> V)
V
- the map of key/value pairspublic static final java.lang.String toEqListString(java.util.Map<?,?> V, char delimiter)
V
- the map of key/value pairsdelimiter
- the thing separating each key pair combopublic static final java.util.List<java.lang.Object> copyFlattenList(java.util.List<?> V)
V
- the list to flattenpublic static final int indexOf(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to search forpublic static final int indexOf(java.lang.String[] stringList, java.lang.String str, int startIndex)
stringList
- the string arraystr
- the string to search forstartIndex
- the index to start frompublic static final int numContains(java.lang.String[] theList, java.lang.String str)
theList
- the liststr
- the string to search forpublic static final int indexOfStartsWith(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to search for a starter ofpublic static final int indexOfStartsWith2(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to find a starter forpublic static final int indexOfEndsWith(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to search for a ender ofpublic static final int indexOfEndsWith2(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to find an ender forpublic static final int indexOfIgnoreCase(java.lang.String[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to search forpublic static final int indexOfIgnoreCase(java.lang.Object[] stringList, java.lang.String str)
stringList
- the string arraystr
- the string to search forpublic static final int indexOf(int[] theList, int x)
theList
- the int arrayx
- the number to search forpublic static final int indexOf(int[] theList, int x, int startIndex)
theList
- the int arrayx
- the number to search forstartIndex
- the index to start the search frompublic static final int numContains(int[] theList, int x)
theList
- the listx
- the int to search forpublic static final int indexOfFirst(int[] theList, int[] xs)
theList
- the int arrayxs
- the numbers to search forpublic static final int indexOf(byte[] theList, byte x)
theList
- the byte arrayx
- the byte to search forpublic static final int indexOf(byte[] theList, byte x, int startIndex)
theList
- the byte arrayx
- the byte to search forstartIndex
- the index to start frompublic static final int numContains(byte[] theList, byte x)
theList
- the listx
- the byte to search forpublic static final boolean equals(byte[] x, int i, byte[] y)
x
- the first byte arrayi
- the starting index in the first byte arrayy
- the bytes to compare topublic static final int indexOf(byte[] theList, byte[] x)
theList
- the byte arrayx
- the bytes to search forpublic static final int indexOf(byte[] theList, byte[] x, int startIndex)
theList
- the byte arrayx
- the bytes to search forstartIndex
- the index to start frompublic static final int indexOf(long[] theList, long x)
theList
- the string arrayx
- the number to search forpublic static final int indexOf(long[] theList, long x, int startIndex)
theList
- the string arrayx
- the number to search forstartIndex
- the index to start frompublic static final int numContains(long[] theList, long x)
theList
- the listx
- the long to search forpublic static final int indexOf(java.util.Enumeration<?> e, java.lang.Object key)
e
- the enumeration of objectskey
- the object to look forpublic static final int indexOfIgnoreCase(java.util.Enumeration<?> e, java.lang.String str)
e
- the enumeration of objectsstr
- the String to look forpublic static final int indexOfFirst(java.lang.Object[] theList, java.lang.Object[] objs)
theList
- the Object arrayobjs
- the Objects to search forpublic static final int indexOf(java.lang.Object[] theList, java.lang.Object obj)
theList
- the listobj
- the Object to search forpublic static final int indexOf(java.lang.Object[] theList, java.lang.Object obj, int startIndex)
theList
- the listobj
- the Object to search forstartIndex
- the index to start frompublic static final int numContains(java.lang.Object[] theList, java.lang.Object obj)
theList
- the listobj
- the obj to search forpublic static final int indexOf(java.util.List<?> theList, java.lang.Object obj, int startIndex)
theList
- the listobj
- the Object to search forstartIndex
- the index to start frompublic static final int numContains(java.util.List<?> theList, java.lang.Object obj)
theList
- the listobj
- the Object to search forpublic static final int indexOfAsString(java.lang.Object[] theList, java.lang.Object obj)
theList
- the list of Objects to call toString obobj
- the Object to search for, after calling toStringpublic static final int indexOf(java.util.Iterator<?> i, java.lang.Object key)
i
- the Iterator of objectskey
- the object to look forpublic static final int indexOfIgnoreCase(java.util.Iterator<?> i, java.lang.String str)
i
- the Iterator of objectsstr
- the String to look forpublic static final int indexOfIgnoreCase(java.util.List<?> theList, java.lang.String str)
theList
- the List of objectsstr
- the String to look forpublic static final boolean contains(java.lang.String[] theList, java.lang.String str)
theList
- the liststr
- the string to search forpublic static final boolean contains(java.lang.String theList, java.lang.String str)
theList
- the liststr
- the string to search forpublic static final boolean contains(java.util.Enumeration<java.lang.String> e, java.lang.String str)
e
- the enumerationstr
- the string to search forpublic static final boolean contains(char[] theList, char c)
theList
- the listc
- the char to search forpublic static final boolean contains(byte[] theList, byte b)
theList
- the listb
- the byte to search forpublic static final boolean containsIgnoreCase(java.lang.String[] theList, java.lang.String str)
theList
- the liststr
- the string to search forpublic static final boolean containsIgnoreCase(java.util.List<?> theList, java.lang.String str)
theList
- the liststr
- the string to search forpublic static final boolean contains(java.lang.Object[] theList, java.lang.Object obj)
theList
- the listobj
- the Object to search forpublic static final boolean containsAsString(java.lang.Object[] theList, java.lang.Object obj)
theList
- the listobj
- the Object to search for, which is a toStringpublic static final boolean contains(java.lang.Object[] theList, java.lang.Object[] objs)
theList
- the listobjs
- the Objects to search forpublic static final boolean contains(java.util.Enumeration<? extends java.lang.Object> e, java.lang.Object obj)
e
- the enumerationobj
- the Object to search forpublic static final boolean contains(int[] theList, int x)
theList
- the listx
- the int to search forpublic static final boolean contains(int[] theList, int[] xs)
theList
- the listxs
- the ints to search forpublic static final boolean compareRange(java.nio.ByteBuffer buf, byte[] bytes, int pos)
buf
- the bytebuffer to comparebytes
- the byte array to comparepos
- the starting position in the bytebufferpublic static final int containIndex(java.nio.ByteBuffer buf, byte[][] bytes, int pos)
buf
- the bytebufferbytes
- the array of byte arrayspos
- the starting position in the bytebufferpublic static final int startsWith(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final int startsWithIgnoreCase(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final boolean startsAnyWith(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final boolean startsAnyWithIgnoreCase(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final int endsWith(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final int[] endsWiths(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final int endsWithIgnoreCase(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final boolean endsAnyWith(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look forpublic static final boolean endsAnyWithIgnoreCase(java.lang.String[] theList, java.lang.String str)
theList
- the list of stringsstr
- the string to look for