Class ShortId

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

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

      • key

        private short key
    • Constructor Detail

      • ShortId

        public ShortId​(java.lang.Class<?> pcClass,
                       short key)
      • ShortId

        public ShortId​(java.lang.Class<?> pcClass,
                       java.lang.Short key)
      • ShortId

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

        public ShortId()
    • Method Detail

      • getKey

        public short getKey()
      • toString

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

        public int compareTo​(ShortId 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.Short,​ShortId>
        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.Short,​ShortId>
        Parameters:
        in - the input
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException