Class NonNullObjectKey<T>

java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.fxcollection.typesafekey.NonNullObjectKey<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
Key<T>, MapAccessor<T>, NonNullKey<T>, NonNullMapAccessor<T>
Direct Known Subclasses:
NonNullListKey

public class NonNullObjectKey<T> extends AbstractKey<T> implements NonNullKey<T>
A simple Key which has a non-nullable value.
Author:
Werner Randelshofer
  • Constructor Details

    • NonNullObjectKey

      public NonNullObjectKey(String name, Type type, T defaultValue)
      Creates a new instance with the specified name, type token class, default value.
      Parameters:
      name - The name of the name.
      type - The type of the value.
      defaultValue - The default value.