Class Property<T>


  • public final class Property<T>
    extends java.lang.Object
    A Property provides an identity-based, immutable token for a property.

    The token also contains a name used to describe the value.

    • Constructor Summary

      Constructors 
      Constructor Description
      Property​(java.lang.String name)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> Property<T> named​(java.lang.String name)
      Create a new identity-based property key.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • Property

        public Property​(java.lang.String name)
        Parameters:
        name - Name of the value.
    • Method Detail

      • named

        public static <T> Property<T> named​(java.lang.String name)
        Create a new identity-based property key.
        Type Parameters:
        T - value type associated with the property.
        Parameters:
        name - Name of the property.
        Returns:
        the created property.
      • toString

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