Class PropertyKey<T>

java.lang.Object
org.jdrupes.builder.api.PropertyKey<T>
Type Parameters:
T - the value's type

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

    • PropertyKey

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

      public PropertyKey(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