Class NonNullObjectKey<T>

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

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

    • NonNullObjectKey

      public NonNullObjectKey(@NonNull String name, @NonNull Type type, @NonNull 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.