Interface PrimitiveTypeDecoder<V>
- Type Parameters:
V- the Type Class that this decoder manages.
- All Superinterfaces:
StreamTypeDecoder<V>,TypeDecoder<V>
- All Known Subinterfaces:
BinaryTypeDecoder,ListTypeDecoder,MapTypeDecoder,PrimitiveArrayTypeDecoder,StringTypeDecoder,SymbolTypeDecoder
- All Known Implementing Classes:
AbstractArrayTypeDecoder,AbstractBinaryTypeDecoder,AbstractListTypeDecoder,AbstractMapTypeDecoder,AbstractPrimitiveTypeDecoder,AbstractStringTypeDecoder,AbstractSymbolTypeDecoder,Array32TypeDecoder,Array8TypeDecoder,Binary32TypeDecoder,Binary8TypeDecoder,BooleanFalseTypeDecoder,BooleanTrueTypeDecoder,BooleanTypeDecoder,ByteTypeDecoder,CharacterTypeDecoder,Decimal128TypeDecoder,Decimal32TypeDecoder,Decimal64TypeDecoder,DoubleTypeDecoder,FloatTypeDecoder,Integer32TypeDecoder,Integer8TypeDecoder,List0TypeDecoder,List32TypeDecoder,List8TypeDecoder,Long8TypeDecoder,LongTypeDecoder,Map32TypeDecoder,Map8TypeDecoder,NullTypeDecoder,ShortTypeDecoder,String32TypeDecoder,String8TypeDecoder,Symbol32TypeDecoder,Symbol8TypeDecoder,TimestampTypeDecoder,UnsignedByteTypeDecoder,UnsignedInteger0TypeDecoder,UnsignedInteger32TypeDecoder,UnsignedInteger8TypeDecoder,UnsignedLong0TypeDecoder,UnsignedLong64TypeDecoder,UnsignedLong8TypeDecoder,UnsignedShortTypeDecoder,UUIDTypeDecoder
Interface for a TypeDecoder that manages decoding of AMQP primitive types.
-
Method Summary
Modifier and TypeMethodDescriptionintbooleandefault booleanMethods inherited from interface org.apache.qpid.protonj2.codec.StreamTypeDecoder
getTypeClass, isArrayType, isNull, readArrayElements, readSize, readValue, skipValueMethods inherited from interface org.apache.qpid.protonj2.codec.TypeDecoder
getTypeClass, isArrayType, isNull, readArrayElements, readSize, readValue, skipValue
-
Method Details
-
isPrimitive
default boolean isPrimitive()- Specified by:
isPrimitivein interfaceStreamTypeDecoder<V>- Specified by:
isPrimitivein interfaceTypeDecoder<V>- Returns:
- true if the underlying type that is going to be decoded is an primitive type
-
isJavaPrimitive
boolean isJavaPrimitive()- Returns:
- true if the type managed by this decoder is assignable to a Java primitive type.
-
getTypeCode
int getTypeCode()- Returns:
- the AMQP Encoding Code that this primitive type decoder can read.
-