Class CharacterWrapper
- java.lang.Object
-
- es.bsc.dataclay.serialization.java.DataClayJavaWrapper
-
- es.bsc.dataclay.serialization.java.lang.CharacterWrapper
-
- All Implemented Interfaces:
DataClaySerializable
public final class CharacterWrapper extends DataClayJavaWrapper
Wrapper for Character class. *
-
-
Constructor Summary
Constructors Constructor Description CharacterWrapper()
Constructor used for deserializationCharacterWrapper(Character newchar)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedObjs)
Deserializes the object from the buffer provided using the interface represented in the bitmap specified.boolean
equals(Object object)
Object
getJavaObject()
Get the Java object from the wrapperint
hashCode()
boolean
isImmutable()
Indicates if object is immutable or notboolean
isNull()
Indicates if wrapped object is null.void
serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)
Serializes the object into the buffer provided using the interface represented in the bitmap specified.void
setCharacter(Character newCharacter)
Set the CharacterWrapper::char
-
-
-
Constructor Detail
-
CharacterWrapper
public CharacterWrapper()
Constructor used for deserialization
-
CharacterWrapper
public CharacterWrapper(Character newchar)
Constructor- Parameters:
newchar
- The char.
-
-
Method Detail
-
getJavaObject
public Object getJavaObject()
Description copied from class:DataClayJavaWrapper
Get the Java object from the wrapper- Specified by:
getJavaObject
in classDataClayJavaWrapper
- Returns:
- the Java object from the wrapper
-
setCharacter
public void setCharacter(Character newCharacter)
Set the CharacterWrapper::char- Parameters:
newCharacter
- the char to set
-
serialize
public void serialize(DataClayByteBuffer dcBuffer, boolean ignoreUserTypes, Map<MetaClassID,byte[]> ifaceBitMaps, IdentityHashMap<Object,Integer> curSerializedObjs, ListIterator<DataClayObject> pendingObjs, ReferenceCounting referenceCounting)
Description copied from interface:DataClaySerializable
Serializes the object into the buffer provided using the interface represented in the bitmap specified.- Parameters:
dcBuffer
- Buffer in which to serialize the objectignoreUserTypes
- Indicates if user types found during serialization must be ignored or not (for instance, non recursive make persistent)ifaceBitMaps
- Map of bitmaps representing the interfaces to usecurSerializedObjs
- Current serialized objects Object -> OID tag. This structure must be different during each serialization since OID tags are not shared.pendingObjs
- Pending objs.referenceCounting
- Reference counting from this object.
-
deserialize
public void deserialize(DataClayByteBuffer dcBuffer, Map<MetaClassID,byte[]> ifaceBitMaps, DataClayObjectMetaData metadata, Map<Integer,Object> curDeserializedObjs)
Description copied from interface:DataClaySerializable
Deserializes the object from the buffer provided using the interface represented in the bitmap specified.- Parameters:
dcBuffer
- Buffer from which to deserialize the objectifaceBitMaps
- Map of bitmaps representing the interfaces to usemetadata
- Useful metadata of the object for executioncurDeserializedObjs
- Currently deserialized Java objects
-
isImmutable
public boolean isImmutable()
Description copied from class:DataClayJavaWrapper
Indicates if object is immutable or not- Specified by:
isImmutable
in classDataClayJavaWrapper
- Returns:
- TRUE if immutable, FALSE otherwise.
-
isNull
public boolean isNull()
Description copied from class:DataClayJavaWrapper
Indicates if wrapped object is null.- Specified by:
isNull
in classDataClayJavaWrapper
- Returns:
- TRUE if null.
-
-