java.lang.Object
org.jhotdraw8.draw.key.AbstractMapAccessor<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
CompositeMapAccessor<T>,MapAccessor<T>
- Direct Known Subclasses:
BoundingBoxMapAccessor,Rectangle2DMapAccessor
AbstractMapAccessor.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from interface org.jhotdraw8.fxcollection.typesafekey.CompositeMapAccessor
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapAccessor(String name, @Nullable Class<?> type, @Nullable Class<?>[] typeParameters, MapAccessor<?>[] subAccessors, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.AbstractMapAccessor(String name, Class<T> type, MapAccessor<?>[] subAccessors, T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.CompositeMapAccessor
containsKeyMethods inherited from interface org.jhotdraw8.fxcollection.typesafekey.MapAccessor
get, get, getRawValueType, put, put, remove, remove, set
-
Constructor Details
-
AbstractMapAccessor
public AbstractMapAccessor(String name, Class<T> type, MapAccessor<?>[] subAccessors, T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
name- The name of the key.type- The type of the value.subAccessors- sub accessors which are used by this accessordefaultValue- The default value.
-
AbstractMapAccessor
public AbstractMapAccessor(String name, @Nullable Class<?> type, @Nullable Class<?>[] typeParameters, MapAccessor<?>[] subAccessors, @Nullable T defaultValue) Creates a new instance with the specified name, type token class, default value, and allowing or disallowing null values.- Parameters:
name- The name of the key.type- The type of the value.typeParameters- The type parameters of the class. Specify "" if no type parameters are given. Otherwise specify them in arrow brackets.subAccessors- sub accessors which are used by this accessordefaultValue- The default value.
-
-
Method Details
-
getName
Returns the name string.- Specified by:
getNamein interfaceMapAccessor<T>- Returns:
- name string.
-
getValueType
- Specified by:
getValueTypein interfaceMapAccessor<T>
-
getDefaultValue
Returns the default value of the attribute.- Specified by:
getDefaultValuein interfaceMapAccessor<T>- Returns:
- the default value.
-
toString
Returns the name string. -
getSubAccessors
- Specified by:
getSubAccessorsin interfaceCompositeMapAccessor<T>
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfaceMapAccessor<T>
-