public class EncodeUtil extends Object
Constructor and Description |
---|
EncodeUtil() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
decodeAll(Collection<String> values,
EncoderDecoder decoder)
Decode all strings in a collection.
|
static List<String> |
encodeAll(Collection<String> values,
EncoderDecoder encoder)
Encode all strings in a collection.
|
static String |
encodeAndJoin(Collection<String> values,
EncoderDecoder encoder,
String separator,
boolean skipNull)
Encode all strings in a collection and join them into a single
string.
|
public static List<String> encodeAll(Collection<String> values, EncoderDecoder encoder)
values
- A collection with values that should be encodedencoder
- The encoder implemenation to usepublic static List<String> decodeAll(Collection<String> values, EncoderDecoder decoder)
values
- A collection with values that should be decodeddecoder
- The decoder implemenation to usepublic static String encodeAndJoin(Collection<String> values, EncoderDecoder encoder, String separator, boolean skipNull)
values
- A collection with values that should be encodedencoder
- The encoder implemenation to useseparator
- The separator string that is inserted between the decoded valuesskipNull
- TRUE to skip null values (before and after encoding)