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>bindingsMap<Ring,IStringifier>substringifiers-
Fields inherited from interface cc.redberry.rings.io.IStringifier
DUMMY
-
-
Constructor Summary
Constructors Constructor Description SimpleStringifier()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
substringifier
public <U> IStringifier<U> substringifier(Ring<U> ring)
Description copied from interface:IStringifierGet stringifier for the specified ring of some underlying elements, should never give null (use dummy() for absent stringifier)- Specified by:
substringifierin interfaceIStringifier<E>
-
getBindings
public Map<E,String> getBindings()
Description copied from interface:IStringifierMap of bindings- Specified by:
getBindingsin interfaceIStringifier<E>
-
-