Package com.vaadin.ui

Class UniqueSerializable

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class UniqueSerializable
    extends java.lang.Object
    implements java.io.Serializable
    A base class for generating an unique object that is serializable.

    This class is abstract but has no abstract methods to force users to create an anonymous inner class. Otherwise each instance will not be unique.

    Since:
    6.8.0
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • UniqueSerializable

        public UniqueSerializable()
    • Method Detail

      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object