| Modifier and Type | Method and Description |
|---|---|
static Splitter.MapSplitter |
defauLt()
Returns the Map Splitter with the default entry and key/value delimiter:
", " and "=". |
Splitter.MapSplitter |
limit(int limit) |
Splitter.MapSplitter |
omitEmptyStrings() |
Splitter.MapSplitter |
omitEmptyStrings(boolean omitEmptyStrings)
Deprecated.
replaced with
omitEmptyStrings() |
static Splitter.MapSplitter |
pattern(CharSequence entryDelimiterRegex,
CharSequence keyValueDelimiterRegex) |
Map<String,String> |
split(CharSequence source) |
<M extends Map<String,String>> |
split(CharSequence source,
Supplier<? extends M> supplier) |
<K,V> Map<K,V> |
split(Class<K> keyType,
Class<V> valueType,
CharSequence source) |
<K,V,M extends Map<K,V>> |
split(Class<K> keyType,
Class<V> valueType,
CharSequence source,
Supplier<? extends M> supplier) |
<M extends Map<String,String>> |
split(M output,
CharSequence source) |
<K,V,M extends Map<K,V>> |
split(M output,
Class<K> keyType,
Class<V> valueType,
CharSequence source) |
<K,V,M extends Map<K,V>> |
split(M output,
com.landawn.abacus.type.Type<K> keyType,
com.landawn.abacus.type.Type<V> valueType,
CharSequence source) |
<K,V> Map<K,V> |
split(com.landawn.abacus.type.Type<K> keyType,
com.landawn.abacus.type.Type<V> valueType,
CharSequence source) |
<K,V,M extends Map<K,V>> |
split(com.landawn.abacus.type.Type<K> keyType,
com.landawn.abacus.type.Type<V> valueType,
CharSequence source,
Supplier<? extends M> supplier) |
<T,E extends Exception> |
splitAndThen(CharSequence source,
Throwables.Function<? super Map<String,String>,T,E> converter)
Split and then.
|
ImmutableMap<String,String> |
splitToImmutableMap(CharSequence source) |
<K,V> ImmutableMap<K,V> |
splitToImmutableMap(Class<K> keyType,
Class<V> valueType,
CharSequence source) |
Splitter.MapSplitter |
strip(boolean strip)
Deprecated.
replaced with
stripResults() |
Splitter.MapSplitter |
stripResults() |
Splitter.MapSplitter |
trim(boolean trim)
Deprecated.
replaced with
trimResults() |
Splitter.MapSplitter |
trimResults() |
static Splitter.MapSplitter |
with(CharSequence entryDelimiter,
CharSequence keyValueDelimiter) |
static Splitter.MapSplitter |
with(Pattern entryDelimiter,
Pattern keyValueDelimiter) |
public static Splitter.MapSplitter defauLt()
", " and "=".public static Splitter.MapSplitter with(CharSequence entryDelimiter, CharSequence keyValueDelimiter) throws IllegalArgumentException
entryDelimiter - keyValueDelimiter - IllegalArgumentException - if the specified entryDelimiter/keyValueDelimiter is null or empty.Splitter.with(CharSequence)public static Splitter.MapSplitter with(Pattern entryDelimiter, Pattern keyValueDelimiter) throws IllegalArgumentException
entryDelimiter - keyValueDelimiter - IllegalArgumentException - if the specified entryDelimiter/keyValueDelimiter is null, or empty string may be matched by one of them.Splitter.with(Pattern)public static Splitter.MapSplitter pattern(CharSequence entryDelimiterRegex, CharSequence keyValueDelimiterRegex) throws IllegalArgumentException
entryDelimiterRegex - keyValueDelimiterRegex - IllegalArgumentException - if the specified entryDelimiterRegex/keyValueDelimiterRegex is null or empty, or empty string may be matched by one of them.Splitter.pattern(CharSequence)@Deprecated public Splitter.MapSplitter omitEmptyStrings(boolean omitEmptyStrings)
omitEmptyStrings()omitEmptyStrings - public Splitter.MapSplitter omitEmptyStrings()
@Deprecated public Splitter.MapSplitter trim(boolean trim)
trimResults()trim - public Splitter.MapSplitter trimResults()
@Deprecated public Splitter.MapSplitter strip(boolean strip)
stripResults()strip is true.strip - Character.isWhitespace(char)public Splitter.MapSplitter stripResults()
public Splitter.MapSplitter limit(int limit)
limit - public Map<String,String> split(CharSequence source)
source - public <K,V> Map<K,V> split(Class<K> keyType, Class<V> valueType, CharSequence source)
K - the key typeV - the value typekeyType - valueType - source - public <K,V> Map<K,V> split(com.landawn.abacus.type.Type<K> keyType, com.landawn.abacus.type.Type<V> valueType, CharSequence source)
K - the key typeV - the value typekeyType - valueType - source - public <M extends Map<String,String>> M split(M output, CharSequence source)
M - output - source - public <K,V,M extends Map<K,V>> M split(M output, Class<K> keyType, Class<V> valueType, CharSequence source)
K - the key typeV - the value typeM - output - keyType - valueType - source - public <K,V,M extends Map<K,V>> M split(M output, com.landawn.abacus.type.Type<K> keyType, com.landawn.abacus.type.Type<V> valueType, CharSequence source)
K - the key typeV - the value typeM - output - keyType - valueType - source - public <M extends Map<String,String>> M split(CharSequence source, Supplier<? extends M> supplier)
M - source - supplier - public <K,V,M extends Map<K,V>> M split(Class<K> keyType, Class<V> valueType, CharSequence source, Supplier<? extends M> supplier)
K - the key typeV - the value typeM - keyType - valueType - source - supplier - public <K,V,M extends Map<K,V>> M split(com.landawn.abacus.type.Type<K> keyType, com.landawn.abacus.type.Type<V> valueType, CharSequence source, Supplier<? extends M> supplier)
K - the key typeV - the value typeM - keyType - valueType - source - supplier - public ImmutableMap<String,String> splitToImmutableMap(CharSequence source)
source - public <K,V> ImmutableMap<K,V> splitToImmutableMap(Class<K> keyType, Class<V> valueType, CharSequence source)
K - the key typeV - the value typekeyType - valueType - source - public <T,E extends Exception> T splitAndThen(CharSequence source, Throwables.Function<? super Map<String,String>,T,E> converter) throws E extends Exception
T - E - source - converter - E - the eE extends ExceptionCopyright © 2021. All rights reserved.