Class LabeledIntMapSupplier<C extends LabeledIntMap>
java.lang.Object
it.univr.di.labeledvalue.LabeledIntMapSupplier<C>
- Type Parameters:
C- implementation class of LabeledIntMap interface.
- All Implemented Interfaces:
Supplier<C>
public final class LabeledIntMapSupplier<C extends LabeledIntMap>
extends Object
implements Supplier<C>
Basic factory of LabeledIntMap objects. An implementation of 'C' must be provided.
- Version:
- $Rev: 1073 $
- Author:
- posenato
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Class<? extends LabeledIntMap> static final Class<? extends LabeledIntMap> -
Constructor Summary
ConstructorsConstructorDescriptionLabeledIntMapSupplier(Class<C> implementationClass) Constructor for LabeledIntMapSupplier. -
Method Summary
Modifier and TypeMethodDescriptionget()get(boolean optimize) get(LabeledIntMap lim) get(LabeledIntMap lim, boolean optimize) toString()
-
Field Details
-
DEFAULT_LABELEDINTMAP_CLASS
-
SIMPLE_LABELEDINTMAP_CLASS
-
-
Constructor Details
-
LabeledIntMapSupplier
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<C extends LabeledIntMap>
-
get
- Parameters:
optimize- false if the labels do not have to be shortened.- Returns:
- a new instance
-
get
- Parameters:
lim- aLabeledIntMapobject.- Returns:
- a new LabeledIntMap object that is an independent copy of 'lim'.
-
get
- Parameters:
lim- aLabeledIntMapobject.optimize- false if the labels do not have to be shortened.- Returns:
- a new instance
-
getReturnedObjectClass
-
toString
-