Package gnu.mapping

Class PropertyKey<T>

java.lang.Object
gnu.mapping.PropertyKey<T>
Direct Known Subclasses:
LazyPropertyKey

public class PropertyKey<T> extends Object
PropertySet keys that provide statically-typeable values.
  • Constructor Details

    • PropertyKey

      public PropertyKey(String name)
  • Method Details

    • get

      public T get(PropertySet container, T defaultValue)
      Get the value associated with this key in a given PropertySet. Return defaultValue if there is no association for this key.
    • get

      public final T get(PropertySet container)
      Get the value associated with this key in a given PropertySet. Return null if there is no association for this key.
    • set

      public void set(PropertySet container, T value)