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:
com.google.common.base.Supplier<C>
,Supplier<C>
public final class LabeledIntMapSupplier<C extends LabeledIntMap>
extends Object
implements com.google.common.base.Supplier<C>
Basic factory of LabeledIntMap objects. An implementation C must be provided.
- Version:
- $Rev: 852 $
- Author:
- posenato
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Class
<? extends LabeledIntMap> static final Class
<? extends LabeledIntMap> -
Constructor Summary
ConstructorDescriptionLabeledIntMapSupplier
(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:
get
in interfacecom.google.common.base.Supplier<C extends LabeledIntMap>
- Specified by:
get
in interfaceSupplier<C extends LabeledIntMap>
-
get
- Parameters:
optimize
- false if the labels have not to shorten.- Returns:
- a new instance
-
get
- Parameters:
lim
- aLabeledIntMap
object.- Returns:
- a new LabeledIntMap object that is an independent copy of 'lim'.
-
get
- Parameters:
lim
- aLabeledIntMap
object.optimize
- false if the labels have not to shorten.- Returns:
- a new instance
-
getReturnedObjectClass
-
toString
-