Class MapDBVar<T>

  • Type Parameters:
    T - the type of the inner variable
    All Implemented Interfaces:
    Var<T>

    public final class MapDBVar<T>
    extends Object
    implements Var<T>
    The MapDB variant for DBContext.getVar(String).
    • Constructor Detail

      • MapDBVar

        public MapDBVar​(org.mapdb.Atomic.Var<T> var)
    • Method Detail

      • get

        public T get()
        Specified by:
        get in interface Var<T>
        Returns:
        the variable contained
      • set

        public void set​(T var)
        Specified by:
        set in interface Var<T>
        Parameters:
        var - the new variable value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object