Class SingletonSetComplement
java.lang.Object
adaa.analytics.rules.logic.representation.valueset.SingletonSet
adaa.analytics.rules.logic.representation.valueset.SingletonSetComplement
- All Implemented Interfaces:
IValueSet
,Serializable
- See Also:
-
Field Summary
Fields inherited from class adaa.analytics.rules.logic.representation.valueset.SingletonSet
mapping, value
-
Constructor Summary
ConstructorsConstructorDescriptionSingletonSetComplement
(double v, List<String> mapping) Initializes members with arguments. -
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(double value) Checks whether the set contains a given value.boolean
Checks if the value set equals to other one.boolean
intersects
(IValueSet set) Checks if the value set intersects with another one.toString()
Converts the value set to string.Methods inherited from class adaa.analytics.rules.logic.representation.valueset.SingletonSet
getDifference, getIntersection, getMapping, getValue, getValueAsString, hashCode, setMapping, setValue
-
Constructor Details
-
SingletonSetComplement
Initializes members with arguments.- Parameters:
v
- Singleton value.mapping
- Mapping from value to label (can be null).
-
-
Method Details
-
contains
public boolean contains(double value) Checks whether the set contains a given value. If the value is missing (NaN), the behaviour depends on the missing value policy (seeMissingValuesHandler
).- Specified by:
contains
in interfaceIValueSet
- Overrides:
contains
in classSingletonSet
- Parameters:
value
- Value to be checked.- Returns:
- Test result.
-
intersects
Checks if the value set intersects with another one.- Specified by:
intersects
in interfaceIValueSet
- Overrides:
intersects
in classSingletonSet
- Parameters:
set
- Other value set.- Returns:
- Test result.
-
equals
Checks if the value set equals to other one.- Specified by:
equals
in interfaceIValueSet
- Overrides:
equals
in classSingletonSet
- Parameters:
obj
- Object co cmopare with.- Returns:
- Test result.
-
toString
Converts the value set to string.- Specified by:
toString
in interfaceIValueSet
- Overrides:
toString
in classSingletonSet
- Returns:
- Text representation of the value set.
-