Class AbstractMapAccessor<T>

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

public abstract class AbstractMapAccessor<T> extends Object implements CompositeMapAccessor<T>
AbstractMapAccessor.
Author:
Werner Randelshofer
  • 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 accessor
      defaultValue - 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 accessor
      defaultValue - The default value.
  • Method Details