public abstract class SimpleFormat extends Format
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFormat.FBigInt |
static class |
SimpleFormat.FBool |
static class |
SimpleFormat.FByte |
static class |
SimpleFormat.FChar |
static class |
SimpleFormat.FDate |
static class |
SimpleFormat.FDouble |
static class |
SimpleFormat.FFloat |
static class |
SimpleFormat.FInt |
static class |
SimpleFormat.FLong |
static class |
SimpleFormat.FShort |
static class |
SimpleFormat.FString |
Modifier and Type | Method and Description |
---|---|
boolean |
isPrimitive()
Returns whether this type is a Java primitive: char, byte, short, int,
long, float or double.
|
boolean |
isSimple()
Returns whether this is a simple type: primitive,
primitive wrapper, BigInteger, String or Date.
|
java.lang.Object |
readObject(java.lang.Object o,
EntityInput input,
boolean rawAccess)
Called after newInstance() to read the rest of the data bytes and fill
in the object contents.
|
getClassName, getComponentType, getDimensions, getEnumConstants, getFields, getPreviousVersion, getSuperType, getVersion, initializeReader, isArray, isEnum, newInstance, readPriKey, toString
public boolean isSimple()
RawType
If true is returned, RawType.isPrimitive()
can be called for more
information, and a raw value of this type is represented as a simple
type object (not as a RawObject
).
If false is returned, this is a complex type, an array type (see
RawType.isArray()
), or an enum type, and a raw value of this type is
represented as a RawObject
.
public boolean isPrimitive()
RawType
If true is returned, this is also a simple type. In other words, primitive types are a subset of simple types.
If true is returned, a raw value of this type is represented as a
non-null instance of the primitive type's wrapper class. For example,
an int
raw value is represented as an
Integer
.
isPrimitive
in interface RawType
isPrimitive
in class Format
public java.lang.Object readObject(java.lang.Object o, EntityInput input, boolean rawAccess)
Format
readObject
in class Format