Package cc.redberry.rings.io
Class IStringifier.SimpleStringifier<E>
java.lang.Object
cc.redberry.rings.io.IStringifier.SimpleStringifier<E>
- All Implemented Interfaces:
IStringifier<E>
- Enclosing interface:
- IStringifier<Element>
public static final class IStringifier.SimpleStringifier<E> extends Object implements IStringifier<E>
Simple map-based stringifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface cc.redberry.rings.io.IStringifier
IStringifier.SimpleStringifier<E>
-
Field Summary
Fields Modifier and Type Field Description Map<E,String>
bindings
Map<Ring,IStringifier>
substringifiers
Fields inherited from interface cc.redberry.rings.io.IStringifier
DUMMY
-
Constructor Summary
Constructors Constructor Description SimpleStringifier()
-
Method Summary
Modifier and Type Method Description Map<E,String>
getBindings()
Map of bindings<U> IStringifier<U>
substringifier(Ring<U> ring)
Get stringifier for the specified ring of some underlying elements, should never give null (use dummy() for absent stringifier)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cc.redberry.rings.io.IStringifier
getBinding, getBinding, stringify, stringify
-
Field Details
-
bindings
-
substringifiers
-
-
Constructor Details
-
SimpleStringifier
public SimpleStringifier()
-
-
Method Details
-
substringifier
Description copied from interface:IStringifier
Get stringifier for the specified ring of some underlying elements, should never give null (use dummy() for absent stringifier)- Specified by:
substringifier
in interfaceIStringifier<E>
-
getBindings
Description copied from interface:IStringifier
Map of bindings- Specified by:
getBindings
in interfaceIStringifier<E>
-