Class ByteId

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Comparable<ByteId>

    public class ByteId
    extends SingleFieldId<java.lang.Byte,​ByteId>
    This class is for identity with a single byte field.
    See Also:
    Serialized Form
    • Field Detail

      • key

        private byte key
    • Constructor Detail

      • ByteId

        public ByteId​(java.lang.Class<?> pcClass,
                      byte key)
      • ByteId

        public ByteId​(java.lang.Class<?> pcClass,
                      java.lang.Byte key)
      • ByteId

        public ByteId​(java.lang.Class<?> pcClass,
                      java.lang.String str)
      • ByteId

        public ByteId()
    • Method Detail

      • getKey

        public byte getKey()
      • toString

        public java.lang.String toString()
        Return the String version of the key.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the key.
      • compareTo

        public int compareTo​(ByteId other)
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Write this object. Write the superclass first.
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class SingleFieldId<java.lang.Byte,​ByteId>
        Parameters:
        out - the output
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Read this object. Read the superclass first.
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class SingleFieldId<java.lang.Byte,​ByteId>
        Parameters:
        in - the input
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException