Class MutableObj<T>

java.lang.Object
com.luna.common.mutable.MutableObj<T>
Type Parameters:
T - 可变的类型
All Implemented Interfaces:
Mutable<T>, Serializable
Direct Known Subclasses:
Holder

public class MutableObj<T> extends Object implements Mutable<T>, Serializable
可变Object
Since:
3.0.1
See Also:
  • Constructor Details

    • MutableObj

      public MutableObj()
      构造,空值
    • MutableObj

      public MutableObj(T value)
      构造
      Parameters:
      value - 值
  • Method Details

    • get

      public T get()
      Description copied from interface: Mutable
      获得原始值
      Specified by:
      get in interface Mutable<T>
      Returns:
      原始值
    • set

      public void set(T value)
      Description copied from interface: Mutable
      设置值
      Specified by:
      set in interface Mutable<T>
      Parameters:
      value - 值
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object