Class Value<V>

java.lang.Object
com.logicaldoc.util.Value<V>
Type Parameters:
V - the type of value

public class Value<V> extends Object
A simple value holder.
Since:
8.9.4
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • Value

      public Value()
      Creates a new Value
    • Value

      public Value(V val)
      Creates a new Value
      Parameters:
      val - The value to use for this pair
  • Method Details

    • getValue

      public V getValue()
      Gets the value for this Value.
      Returns:
      value for this Value
    • toString

      public String toString()

      String representation of this Value.

      Overrides:
      toString in class Object
      Returns:
      String representation of this Value
    • setValue

      public void setValue(V val)
    • hashCode

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

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