Package | Description |
---|---|
com.neurosys.utils |
Modifier and Type | Field and Description |
---|---|
static MarshalUtils.Transformer |
MarshalUtils.normalizer |
Modifier and Type | Method and Description |
---|---|
static <T extends Enum> |
MarshalUtils.getEnumTransformer(Class<T> enumClass) |
Modifier and Type | Method and Description |
---|---|
static <T> Collection<T> |
MarshalUtils.convert(Collection<String> coll,
MarshalUtils.Transformer<T> transformer) |
static <T> Collection<String> |
MarshalUtils.convertBack(Collection<T> coll,
MarshalUtils.Transformer<T> transformer) |
static void |
MarshalUtils.marshalToCollection(String rawString,
Collection collection,
MarshalUtils.Transformer t)
Convenience method to extract a collection type of Strings from a delimited String (, or ; or new line)
and each returned token will be trimmed.
If the input is null then output is also null. The list is appended is the string that is converted. |
static <T> List<T> |
MarshalUtils.marshalToList(String[] params,
MarshalUtils.Transformer<T> transformer)
Convenience method to marshal array to Specific Type
and each returned token will be trimmed.
If the input is null then output is also null. |
static <T> List<T> |
MarshalUtils.marshalToList(String rawString,
MarshalUtils.Transformer<T> transformer)
Convenience method to extract a list of Objects from a delimited String (, or ;)
and each returned token will be trimmed.
If the input is null then output is also null. |
static String |
MarshalUtils.marshalToString(Collection<?> coll,
Character quot,
MarshalUtils.Transformer t)
For a not null Collection of String's it will return a comma separated String,
with the elements optionally quited if the element is not null.
|
Copyright © 2018. All rights reserved.