Class ListWeightImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.base.collection.impl.ListWeightImpl
- All Implemented Interfaces:
ListWeight
Implementation of
ListWeight
.- Author:
- Justin Weich
-
Field Summary
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.ListWeight
DEFAULT_LOWER_BOUND_INCLUSIVE, DEFAULT_UPPER_BOUND_INCLUSIVE
-
Constructor Summary
ConstructorDescriptionListWeightImpl
(double weight, double lowerBound, double upperBound) ListWeightImpl
(double weight, double lowerBound, double upperBound, boolean lowerBoundInclusive, boolean upperBoundInclusive) -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of the lower bound.boolean
Returns the value if the lower bound is included or not.double
Returns the value of the upper bound.boolean
Returns the value if the upper bound is included or not.double
Returns the weight value of theListWeight
.boolean
hasSameValueAsIn
(ListWeight listWeight) void
setLowerBound
(double lowerBound) Sets the value for the lower bound.void
setLowerBoundInclusive
(boolean lowerBoundInclusive) Sets the value if the lower bound should be included or not.void
setUpperBound
(double upperBound) Sets the value of the upper bound.void
setUpperBoundInclusive
(boolean upperBoundInclusive) Sets the value if the upper bound should be included or not.void
setWeight
(double weight) Sets the weight value for theListWeight
.toString()
-
Constructor Details
-
ListWeightImpl
public ListWeightImpl(double weight, double lowerBound, double upperBound) -
ListWeightImpl
public ListWeightImpl(double weight, double lowerBound, double upperBound, boolean lowerBoundInclusive, boolean upperBoundInclusive)
-
-
Method Details
-
setWeight
public void setWeight(double weight) Description copied from interface:ListWeight
Sets the weight value for theListWeight
.- Specified by:
setWeight
in interfaceListWeight
-
getWeight
public double getWeight()Description copied from interface:ListWeight
Returns the weight value of theListWeight
.- Specified by:
getWeight
in interfaceListWeight
-
setLowerBound
public void setLowerBound(double lowerBound) Description copied from interface:ListWeight
Sets the value for the lower bound.- Specified by:
setLowerBound
in interfaceListWeight
-
getLowerBound
public double getLowerBound()Description copied from interface:ListWeight
Returns the value of the lower bound.- Specified by:
getLowerBound
in interfaceListWeight
-
setUpperBound
public void setUpperBound(double upperBound) Description copied from interface:ListWeight
Sets the value of the upper bound.- Specified by:
setUpperBound
in interfaceListWeight
-
getUpperBound
public double getUpperBound()Description copied from interface:ListWeight
Returns the value of the upper bound.- Specified by:
getUpperBound
in interfaceListWeight
-
getLowerBoundInclusive
public boolean getLowerBoundInclusive()Description copied from interface:ListWeight
Returns the value if the lower bound is included or not.- Specified by:
getLowerBoundInclusive
in interfaceListWeight
-
setLowerBoundInclusive
public void setLowerBoundInclusive(boolean lowerBoundInclusive) Description copied from interface:ListWeight
Sets the value if the lower bound should be included or not.- Specified by:
setLowerBoundInclusive
in interfaceListWeight
-
getUpperBoundInclusive
public boolean getUpperBoundInclusive()Description copied from interface:ListWeight
Returns the value if the upper bound is included or not.- Specified by:
getUpperBoundInclusive
in interfaceListWeight
-
setUpperBoundInclusive
public void setUpperBoundInclusive(boolean upperBoundInclusive) Description copied from interface:ListWeight
Sets the value if the upper bound should be included or not.- Specified by:
setUpperBoundInclusive
in interfaceListWeight
-
hasSameValueAsIn
- Specified by:
hasSameValueAsIn
in interfaceListWeight
-
toString
-