|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ivata.mask.util.CollectionHandling
This class contains extra routines for combining collection objects.
Don't create an instance of this class; use the static final methods.
| Method Summary | |
static java.util.List |
convertFromLines(java.lang.String lines)
Convert a string of strings separated by new lines into a collection of strings. |
static java.util.List |
convertFromLines(java.lang.String lines,
java.lang.String deliminators)
Convert a string of strings separated by deliminators into a collection of strings. |
static java.lang.String |
convertToLines(java.util.Collection convertToLines)
Convert a collection of strings to one long string, separated by new lines. |
static java.lang.String |
convertToLines(java.util.Collection convertToLines,
char deliminator)
Convert a collection of strings to one long string, separated by deliminators. |
static void |
merge(java.util.Collection from,
java.util.Collection to)
Copy elements from one collection to another. |
static java.util.Properties |
splice(java.util.Properties fromProperties,
java.util.Properties toProperties)
Creates a new properties instance which is a mixture of the two. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.util.List convertFromLines(java.lang.String lines)
Convert a string of strings separated by new lines into a collection of strings.
lines - a single text containing many lines to be split.
Collection of String instances
representing each line from the input.
public static java.util.List convertFromLines(java.lang.String lines,
java.lang.String deliminators)
Convert a string of strings separated by deliminators into a collection of strings.
lines - a single text containing many lines to be split.deliminators - a String containing all possible deliminators
to search for.
Collection of String instances
representing each line from the input.public static java.lang.String convertToLines(java.util.Collection convertToLines)
Convert a collection of strings to one long string, separated by new lines.
convertToLines - a Collection of String instances
representing each line of the output.
Collection separated by new line characters.
public static java.lang.String convertToLines(java.util.Collection convertToLines,
char deliminator)
Convert a collection of strings to one long string, separated by deliminators.
convertToLines - a Collection of String instances
representing each line of the output.deliminator - a char containing deliminator to add after each
element.
Collection separated by new line characters.
public static void merge(java.util.Collection from,
java.util.Collection to)
Copy elements from one collection to another. Adds all of the elements in
from to those in to, if that element is
not already present in to.
from - the collection to copy elements fromto - the collection to copy elements to. This collection will be
changed and all the elements of from which
can't be found will be replaced.
public static java.util.Properties splice(java.util.Properties fromProperties,
java.util.Properties toProperties)
Creates a new properties instance which is a mixture of the two. Adds all
of the properties in fromProperties to those in
toProperties, overwriting any which exist already.
fromProperties - the properties to base the new object ontoProperties - the properties to include if not already set
Properties instance which contains all of
the properties in fromProperties added to those in
toProperties.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||