Modifier and Type | Class and Description |
---|---|
static interface |
Maps.IMapBuilder<K,V>
Map builder.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Maps.IMapBuilder<K,V> |
builder()
Returns a new map builder.
|
static <K,V> Map<K,V> |
singleEntry(K key,
V value)
Returns a single-entry map, containing the given key-value pair.
|
static <K,V> String |
stringify(Map<K,V> map,
String separator,
IStringify<Map.Entry<K,V>> stringify)
Creates a string representation of the given map, using its
entries as values. |
static <K,V> String |
stringify(Map<K,V> map,
String prefix,
String suffix,
boolean includePrefixAndSuffixOnlyIfMapNotEmpty,
String separator,
IStringify<Map.Entry<K,V>> stringify)
Creates a string representation of the given map, using its
entries as values. |
static <K,V> String |
stringify(Map<K,V> map,
String prefix,
String suffix,
String separator,
IStringify<Map.Entry<K,V>> stringify)
Creates a string representation of the given map, using its
entries as values. |
public static <K,V> Maps.IMapBuilder<K,V> builder()
public static <K,V> String stringify(Map<K,V> map, String separator, IStringify<Map.Entry<K,V>> stringify) throws PortalException
entries
as values. By
convention, does not check whether the given stringify has returned null
before concatenating to the
result string.map
- the map.separator
- the separator to use between the entries of the map.stringify
- the stringfy to be used to convert entries in strings.PortalException
public static <K,V> String stringify(Map<K,V> map, String prefix, String suffix, String separator, IStringify<Map.Entry<K,V>> stringify) throws PortalException
entries
as values. By
convention, does not check whether the given stringify has returned null
before concatenating to the
result string.map
- the map.prefix
- the prefix to be appended in final string.suffix
- the suffix to be appended in final string.separator
- the separator to use between the entries of the map.stringify
- the stringfy to be used to convert entries in strings.PortalException
public static <K,V> String stringify(Map<K,V> map, String prefix, String suffix, boolean includePrefixAndSuffixOnlyIfMapNotEmpty, String separator, IStringify<Map.Entry<K,V>> stringify) throws PortalException
entries
as values. By
convention, does not check whether the given stringify has returned null
before concatenating to the
result string.map
- the map.prefix
- the prefix to be appended in final string.suffix
- the suffix to be appended in final string.includePrefixAndSuffixOnlyIfMapNotEmpty
- indicates whether prefix and suffix should be added only if the given collection is not empty.separator
- the separator to use between the entries of the map.stringify
- the stringfy to be used to convert entries in strings.PortalException
public static <K,V> Map<K,V> singleEntry(K key, V value)
key
- the keyvalue
- the valueLumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.