Class Value


  • public class Value
    extends java.lang.Object
    Represents a value that may be null
    This is needed so that the plugin can know whether a value was cached or not for data (because null could be a valid value)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      @Nullable java.lang.String value
      The value
    • Constructor Summary

      Constructors 
      Constructor Description
      Value()
      Constructs a new value with a null value
      Value​(@Nullable java.lang.String value)
      Constructs a new value with the given value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        @Nullable
        public final @Nullable java.lang.String value
        The value
    • Constructor Detail

      • Value

        public Value​(@Nullable
                     @Nullable java.lang.String value)
        Constructs a new value with the given value
        Parameters:
        value - the value
      • Value

        public Value()
        Constructs a new value with a null value
    • Method Detail

      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object