Class SingletonSetComplement

java.lang.Object
adaa.analytics.rules.logic.representation.valueset.SingletonSet
adaa.analytics.rules.logic.representation.valueset.SingletonSetComplement
All Implemented Interfaces:
IValueSet, Serializable

public class SingletonSetComplement extends SingletonSet
See Also:
  • Constructor Details

    • SingletonSetComplement

      public SingletonSetComplement(double v, List<String> mapping)
      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 (see MissingValuesHandler).
      Specified by:
      contains in interface IValueSet
      Overrides:
      contains in class SingletonSet
      Parameters:
      value - Value to be checked.
      Returns:
      Test result.
    • intersects

      public boolean intersects(IValueSet set)
      Checks if the value set intersects with another one.
      Specified by:
      intersects in interface IValueSet
      Overrides:
      intersects in class SingletonSet
      Parameters:
      set - Other value set.
      Returns:
      Test result.
    • equals

      public boolean equals(Object obj)
      Checks if the value set equals to other one.
      Specified by:
      equals in interface IValueSet
      Overrides:
      equals in class SingletonSet
      Parameters:
      obj - Object co cmopare with.
      Returns:
      Test result.
    • toString

      public String toString()
      Converts the value set to string.
      Specified by:
      toString in interface IValueSet
      Overrides:
      toString in class SingletonSet
      Returns:
      Text representation of the value set.