Class EmptyObject<T>

  • Type Parameters:
    T - The type of object of this entries table
    All Implemented Interfaces:
    DataSerializable

    public class EmptyObject<T>
    extends TableEntry<T>
    implements DataSerializable
    Represents an entry in a table which has no associated object. Used to have rolls which give nothing.
    • Constructor Detail

      • EmptyObject

        public EmptyObject​(double weight)
        Creates a new EmptyObject with the given weight.
        Parameters:
        weight - The weight of this object
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object