Class PropertyKey2<T>

java.lang.Object
org.jdrupes.builder.api.PropertyKey2<T>
Type Parameters:
T - the generic type

public class PropertyKey2<T> extends Object
Instances of this class define keys for a Project's properties. See Project for a examples.
  • Constructor Details

    • PropertyKey2

      public PropertyKey2(T defaultValue)
      Initializes a PropertyKey with the given default value. The type information is obtained from the value.
      Parameters:
      defaultValue - the default value
    • PropertyKey2

      public PropertyKey2(Type type)
      Initializes a PropertyKey with the given type information. The default value is set to null.
      Parameters:
      type - the type
  • Method Details

    • type

      public Type type()
      Returns the property's type.
      Returns:
      the type
    • defaultValue

      public T defaultValue()
      Returns the property's default value.
      Returns:
      the default value