Class Value<T>

java.lang.Object
cz.cvut.kbss.ontodriver.model.Value<T>

public class Value<T> extends Object
Represents assertion value.

This class is a base for both property and class assertion values.

  • Constructor Details

    • Value

      public Value(T value)
  • Method Details

    • getValue

      public T getValue()
      Gets this value.
      Returns:
      Value of the appropriate type
    • stringValue

      public String stringValue()
      Gets this value as string.
      Returns:
      Value as string
    • nullValue

      public static <T> Value<T> nullValue()
      Returns a Null object for Value.

      Since Value requires a non-null value, this method returns a predefined object which represents a null (empty) value.

      Returns:
      Null value
      See Also:
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object