public class PrimitiveArrayFormat extends Format
ObjectArrayFormat.| Modifier and Type | Method and Description |
|---|---|
Format |
getComponentType()
Returns the array component type, or null if this is not an array type.
|
int |
getDimensions()
Returns the number of array dimensions, or zero if this is not an array
type.
|
boolean |
isArray()
Returns whether this is an array type.
|
Object |
newInstance(EntityInput input,
boolean rawAccess)
Creates a new instance of the target class using its default
constructor.
|
Object |
readObject(Object o,
EntityInput input,
boolean rawAccess)
Called after newInstance() to read the rest of the data bytes and fill
in the object contents.
|
allowEvolveFromProxy, getAccessor, getClassMetadata, getClassName, getEntityMetadata, getEnumConstants, getFields, getId, getOldKeyName, getPreviousVersion, getSuperType, getVersion, initializeReader, isDeleted, isEnum, isPrimitive, isSimple, readPriKey, toStringpublic boolean isArray()
RawTypeRawObject instances.
If true is returned, the array component type is returned by RawType.getComponentType() and the number of array dimensions is returned by
RawType.getDimensions().
If false is returned, then this is a complex type, an enum type (see
RawType.isEnum()), or a simple type (see RawType.isSimple()).
public int getDimensions()
RawTypegetDimensions in interface RawTypegetDimensions in class Formatpublic Format getComponentType()
RawTypegetComponentType in interface RawTypegetComponentType in class Formatpublic Object newInstance(EntityInput input, boolean rawAccess) throws RefreshException
FormatnewInstance in class FormatRefreshExceptionpublic Object readObject(Object o, EntityInput input, boolean rawAccess) throws RefreshException
FormatreadObject in class FormatRefreshExceptionCopyright © 2024. All rights reserved.