@Beta public abstract class AbstractIntegerStringCodec<N extends Number & Comparable<N>,T extends TypeDefinition<T>> extends TypeDefinitionAwareCodec<N,T>
Modifier and Type | Method and Description |
---|---|
N |
deserialize(String stringRepresentation)
Produce an object base on input.
|
protected static List<RangeConstraint> |
extractRange(IntegerTypeDefinition type) |
protected static List<RangeConstraint> |
extractRange(UnsignedIntegerTypeDefinition type) |
static AbstractIntegerStringCodec<?,IntegerTypeDefinition> |
from(IntegerTypeDefinition type) |
static AbstractIntegerStringCodec<?,UnsignedIntegerTypeDefinition> |
from(UnsignedIntegerTypeDefinition type) |
from, fromType, getInputClass, getTypeDefinition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
serialize
public static AbstractIntegerStringCodec<?,IntegerTypeDefinition> from(IntegerTypeDefinition type)
public static AbstractIntegerStringCodec<?,UnsignedIntegerTypeDefinition> from(UnsignedIntegerTypeDefinition type)
public final N deserialize(String stringRepresentation)
Deserializer
stringRepresentation
- Input objectprotected static List<RangeConstraint> extractRange(IntegerTypeDefinition type)
protected static List<RangeConstraint> extractRange(UnsignedIntegerTypeDefinition type)
Copyright © 2018 OpenDaylight. All rights reserved.