Class DecimalStringCodec
- java.lang.Object
-
- org.opendaylight.yangtools.concepts.AbstractCodec<P,I,X>
-
- org.opendaylight.yangtools.concepts.AbstractUncheckedCodec<P,I,IllegalArgumentException>
-
- org.opendaylight.yangtools.concepts.AbstractIllegalArgumentCodec<String,T>
-
- org.opendaylight.yangtools.yang.data.impl.codec.AbstractDataStringCodec<J>
-
- org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec<BigDecimal,DecimalTypeDefinition>
-
- org.opendaylight.yangtools.yang.data.impl.codec.DecimalStringCodec
-
- All Implemented Interfaces:
Codec<String,BigDecimal,IllegalArgumentException>
,Deserializer<BigDecimal,String,IllegalArgumentException>
,IllegalArgumentCodec<String,BigDecimal>
,Serializer<String,BigDecimal,IllegalArgumentException>
,UncheckedCodec<String,BigDecimal,IllegalArgumentException>
,UncheckedDeserializer<String,BigDecimal,IllegalArgumentException>
,UncheckedSerializer<BigDecimal,String,IllegalArgumentException>
,DecimalCodec<String>
,DataStringCodec<BigDecimal>
@Beta public final class DecimalStringCodec extends TypeDefinitionAwareCodec<BigDecimal,DecimalTypeDefinition> implements DecimalCodec<String>
Do not use this class outside of yangtools, its presence does not fall into the API stability contract.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BigDecimal
deserializeImpl(String product)
static @NonNull DecimalStringCodec
from(DecimalTypeDefinition type)
protected @NonNull String
serializeImpl(@NonNull BigDecimal input)
-
Methods inherited from class org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec
from, fromType, getInputClass, getTypeDefinition
-
Methods inherited from class org.opendaylight.yangtools.concepts.AbstractCodec
deserialize, serialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.yangtools.concepts.Codec
deserialize, serialize
-
Methods inherited from interface org.opendaylight.yangtools.concepts.UncheckedDeserializer
serialize
-
Methods inherited from interface org.opendaylight.yangtools.concepts.UncheckedSerializer
deserialize
-
-
-
-
Method Detail
-
from
public static @NonNull DecimalStringCodec from(DecimalTypeDefinition type)
-
deserializeImpl
protected BigDecimal deserializeImpl(String product)
- Specified by:
deserializeImpl
in classAbstractUncheckedCodec<String,BigDecimal,IllegalArgumentException>
-
serializeImpl
protected @NonNull String serializeImpl(@NonNull BigDecimal input)
- Specified by:
serializeImpl
in classAbstractUncheckedCodec<String,BigDecimal,IllegalArgumentException>
-
-