|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.brightcove.proserve.mediaapi.wrapper.utils.CollectionUtils
public class CollectionUtils
This is a fairly simple set of static methods to perform operations on Collection objects (Lists, Arrays, Vectors, Sets, etc).
| Constructor Summary | |
|---|---|
CollectionUtils()
|
|
| Method Summary | |
|---|---|
static java.util.Set<java.lang.Integer> |
CreateEmptyIntegerSet()
|
static java.util.Set<java.lang.Long> |
CreateEmptyLongSet()
|
static java.util.Set<java.lang.String> |
CreateEmptyStringSet()
|
static java.lang.String |
JoinToString(java.util.List<?> list,
java.lang.String delimiter)
Given a List and a delimiter, creates a delimited string of the objects in the List (using the toString() method of each object). |
static java.lang.String |
JoinToString(java.util.List<?> list,
java.lang.String delimiter,
java.lang.Boolean escapeDelimiter,
java.lang.String escapeSequence)
Given a List and a delimiter, creates a delimited string of the objects in the List (using the toString() method of each object). |
static java.lang.String |
JoinToString(java.util.Set<?> set,
java.lang.String delimiter)
Given a Set and a delimiter, creates a delimited string of the objects in the Set (using the toString() method of each object). |
static java.lang.String |
JoinToString(java.util.Set<?> set,
java.lang.String delimiter,
java.lang.Boolean escapeDelimiter,
java.lang.String escapeSequence)
Given a Set and a delimiter, creates a delimited string of the objects in the Set (using the toString() method of each object). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionUtils()
| Method Detail |
|---|
public static java.lang.String JoinToString(java.util.List<?> list,
java.lang.String delimiter)
Given a List and a delimiter, creates a delimited string of the objects in the List (using the toString() method of each object).
list - List of objectsdelimiter - Delimiter to separate the objects in the output String
public static java.lang.String JoinToString(java.util.List<?> list,
java.lang.String delimiter,
java.lang.Boolean escapeDelimiter,
java.lang.String escapeSequence)
Given a List and a delimiter, creates a delimited string of the objects in the List (using the toString() method of each object).
list - List of objectsdelimiter - Delimiter to separate the objects in the output StringescapeDelimiter - If true, delimiters in the original strings will be escaped with escapeSequenceescapeSequence - String to escape delimiters with
public static java.lang.String JoinToString(java.util.Set<?> set,
java.lang.String delimiter)
Given a Set and a delimiter, creates a delimited string of the objects in the Set (using the toString() method of each object).
set - Set of objectsdelimiter - Delimiter to separate the objects in the output String
public static java.lang.String JoinToString(java.util.Set<?> set,
java.lang.String delimiter,
java.lang.Boolean escapeDelimiter,
java.lang.String escapeSequence)
Given a Set and a delimiter, creates a delimited string of the objects in the Set (using the toString() method of each object).
set - Set of objectsdelimiter - Delimiter to separate the objects in the output StringescapeDelimiter - If true, delimiters in the original strings will be escaped with escapeSequenceescapeSequence - String to escape delimiters with
public static java.util.Set<java.lang.Long> CreateEmptyLongSet()
public static java.util.Set<java.lang.String> CreateEmptyStringSet()
public static java.util.Set<java.lang.Integer> CreateEmptyIntegerSet()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||