|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.AbstractMapFormat<K,V>
sbrt.shell.text.EqualsMapFormatV1<K,V>
K
- the key type.V
- the value type.public final class EqualsMapFormatV1<K,V>
This class is a concrete implementation of MapFormat. The string representation of map entries is:
key = value.
Instances of this class are immutable.
Constructor Summary | |
---|---|
EqualsMapFormatV1(Formatter<K> keyFormatter,
Parser<K> keyParser,
Formatter<V> valueFormatter,
Parser<V> valueParser)
Constructs a new map format using the provided key and value formats. |
|
EqualsMapFormatV1(SimpleFormat<K> keyFormat,
SimpleFormat<V> valueFormat)
Constructs a new map format using the provided key and value formats. |
Method Summary | |
---|---|
static EqualsMapFormatV1<java.lang.String,java.lang.String> |
getBasic()
Returns an EqualsMapFormatV1 that does not
format or parse the keys or values supplied to it. |
PipeListFormat<V> |
getListFormat()
Returns the format used for lists of values. |
EqualsMapEntryFormatV1<java.lang.String,java.lang.String> |
getMapEntryFormat()
Returns the format used for variable-value pairs. |
PipeSetFormat<K> |
getSetFormat()
Returns the format used for sets of variables. |
Methods inherited from class sbrt.shell.text.AbstractMapFormat |
---|
formatKey, formatKeys, formatPair, formatPair, formatValue, formatValues, formatValues, getKeyFormatter, getKeyParser, getValueFormatter, getValueParser, parseAllKeys, parseAllPairs, parseAllValues, parseAllValues, parseKey, parsePair, parseValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EqualsMapFormatV1(Formatter<K> keyFormatter, Parser<K> keyParser, Formatter<V> valueFormatter, Parser<V> valueParser)
keyFormatter
- the formatter to use for keys.keyParser
- the parser to use for keys.valueFormatter
- the formatter to use for values.valueParser
- the parser to use for values.
java.lang.NullPointerException
- if either argument is null
.public EqualsMapFormatV1(SimpleFormat<K> keyFormat, SimpleFormat<V> valueFormat)
keyFormat
- the format to use for keys.valueFormat
- the format to use for values.
java.lang.NullPointerException
- if either argument is null
.Method Detail |
---|
public static final EqualsMapFormatV1<java.lang.String,java.lang.String> getBasic()
EqualsMapFormatV1
that does not
format or parse the keys or values supplied to it. In other
words, it returns an EqualsMapFormatV1
with
the most basic possible functionality. Empty strings are not
allowed however.
EqualsMapFormatV1
that does not
format or parse the keys and values supplied to it.public EqualsMapEntryFormatV1<java.lang.String,java.lang.String> getMapEntryFormat()
getMapEntryFormat
in class AbstractMapFormat<K,V>
public PipeSetFormat<K> getSetFormat()
getSetFormat
in class AbstractMapFormat<K,V>
public PipeListFormat<V> getListFormat()
getListFormat
in class AbstractMapFormat<K,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |