Package gnu.mapping

Class PropertyKey<T>

  • Direct Known Subclasses:
    LazyPropertyKey

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

      • PropertyKey

        public PropertyKey​(String name)
    • Method Detail

      • 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)