Module org.jhotdraw8.fxcollection
Class NullableObjectKey<T>
java.lang.Object
org.jhotdraw8.fxcollection.typesafekey.AbstractKey<T>
org.jhotdraw8.fxcollection.typesafekey.NullableObjectKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
Key<T>,MapAccessor<T>,NullableKey<T>
A simple
Key which has a nullable value.- Author:
- Werner Randelshofer
-
Constructor Summary
ConstructorsConstructorDescriptionNullableObjectKey(String name, Class<?> clazz) Creates a new instance with the specified name, type token class, and with null as the default value.NullableObjectKey(String name, Class<?> clazz, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value.NullableObjectKey(String name, Type type) Creates a new instance with the specified name, type token class, and with null as the default value.NullableObjectKey(String name, Type type, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value.NullableObjectKey(String name, TypeToken<T> type) Creates a new instance with the specified name, type token class, and with null as the default value.NullableObjectKey(String name, TypeToken<T> type, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value. -
Method Summary
Methods inherited from class org.jhotdraw8.fxcollection.typesafekey.AbstractKey
getDefaultValue, getName, getValueType, isNullable, isTransient, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.Key
cast, containsKey, getValue, getValueProperty, isAssignable, isDefault, isNullable, propertyAt, put, put, putValue, readOnlyPropertyAt, remove, remove, valueAtMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.MapAccessor
getDefaultValue, getName, getRawValueType, getValueType, isTransient, setMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.NullableKey
get, get
-
Constructor Details
-
NullableObjectKey
Creates a new instance with the specified name, type token class, and with null as the default value.- Parameters:
name- The name of the name.type- The type of the value.
-
NullableObjectKey
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.
-
NullableObjectKey
Creates a new instance with the specified name, type token class, and with null as the default value.- Parameters:
name- The name of the key.type- The type of the value.
-
NullableObjectKey
Creates a new instance with the specified name, type token class, default value.- Parameters:
name- The name of the key.type- The type of the value.defaultValue- The default value.
-
NullableObjectKey
Creates a new instance with the specified name, type token class, and with null as the default value.- Parameters:
name- The name of the key.clazz- The type of the value.
-
NullableObjectKey
Creates a new instance with the specified name, type token class, default value.- Parameters:
name- The name of the key.clazz- The type of the value.defaultValue- The default value.
-