|
||||||||||
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.ColonMapFormatV1<K,V>
K
- the key type.V
- the value type.public final class ColonMapFormatV1<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 | |
---|---|
ColonMapFormatV1(SimpleFormat<K> keyFormat,
SimpleFormat<V> valueFormat)
Constructs a new map format using the provided key and value formats. |
Method Summary | |
---|---|
static ColonMapFormatV1<java.lang.String,java.lang.String> |
getBasic()
Returns a ColonMapFormatV1 that does not
format or parse the keys or values supplied to it. |
PipeListFormat<V> |
getListFormat()
Returns the format used for lists of values. |
ColonMapEntryFormatV1<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 ColonMapFormatV1(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 ColonMapFormatV1<java.lang.String,java.lang.String> getBasic()
ColonMapFormatV1
that does not
format or parse the keys or values supplied to it. In other
words, it returns a ColonMapFormatV1
with
the most basic possible functionality. Empty strings are not
allowed however.
ColonMapFormatV1
that does not
format or parse the keys and values supplied to it.public ColonMapEntryFormatV1<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 |