Class SimpleRef<T>

  • All Implemented Interfaces:
    ModelRef<T>, java.io.Serializable

    public class SimpleRef<T>
    extends java.lang.Object
    implements ModelRef<T>, java.io.Serializable
    it simple use hard reference to a instance
    Since:
    3.0.0
    Author:
    dennis
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleRef​(T instance)  
    • Method Summary

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

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

      • SimpleRef

        public SimpleRef​(T instance)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface ModelRef<T>
      • 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