Class CharArrayByteBufferConverter

  • All Implemented Interfaces:
    java.io.Serializable, TypeConverter<char[],​java.nio.ByteBuffer>

    public class CharArrayByteBufferConverter
    extends java.lang.Object
    implements TypeConverter<char[],​java.nio.ByteBuffer>
    Convenience class to handle Java serialisation of a char[] object to/from ByteBuffer.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer toDatastoreType​(char[] memberValue)
      Method to convert the passed member value to the datastore type.
      char[] toMemberType​(java.nio.ByteBuffer datastoreValue)
      Method to convert the passed datastore value to the member type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CharArrayByteBufferConverter

        public CharArrayByteBufferConverter()
    • Method Detail

      • toDatastoreType

        public java.nio.ByteBuffer toDatastoreType​(char[] memberValue)
        Description copied from interface: TypeConverter
        Method to convert the passed member value to the datastore type.
        Specified by:
        toDatastoreType in interface TypeConverter<char[],​java.nio.ByteBuffer>
        Parameters:
        memberValue - Value from the member
        Returns:
        Value for the datastore
      • toMemberType

        public char[] toMemberType​(java.nio.ByteBuffer datastoreValue)
        Description copied from interface: TypeConverter
        Method to convert the passed datastore value to the member type.
        Specified by:
        toMemberType in interface TypeConverter<char[],​java.nio.ByteBuffer>
        Parameters:
        datastoreValue - Value from the datastore
        Returns:
        Value for the member