Class Option<T>

  • Type Parameters:
    T - type for the option value

    @Deprecated
    public class Option<T>
    extends java.lang.Object
    Deprecated.
    Option could be used to specify metadata for a Property.
    • Constructor Summary

      Constructors 
      Constructor Description
      Option​(java.lang.String name, T value)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      Option<T> copy()
      Deprecated.
      Creates copy of this option
      T getValue()
      Deprecated.
      Gets value for this option
      <T> boolean hasSameNameAs​(Option<T> option)
      Deprecated.
      Checks if this option has same name as the provided option
      void setValue​(T value)
      Deprecated.
      Sets the value for this option
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Option

        public Option​(java.lang.String name,
                      T value)
        Deprecated.
    • Method Detail

      • setValue

        public void setValue​(T value)
        Deprecated.
        Sets the value for this option
        Parameters:
        value - the value to be set for this option
      • getValue

        public T getValue()
        Deprecated.
        Gets value for this option
        Returns:
        value for this option
      • copy

        public Option<T> copy()
        Deprecated.
        Creates copy of this option
        Returns:
        copy of this option
      • hasSameNameAs

        public <T> boolean hasSameNameAs​(Option<T> option)
        Deprecated.
        Checks if this option has same name as the provided option
        Type Parameters:
        T - type for the option value
        Parameters:
        option - the option for which name equality has to be checked
        Returns:
        true if name matches