All Known Implementing Classes:
AnyValueSet, Interval, SingletonSet, SingletonSetComplement, UndefinedSet, Universum

public interface IValueSet
Inteface to be implemented by all classes representing set of values (discrete set, interval, sum of sets, etc.).
  • Method Details

    • contains

      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).
      Parameters:
      value - Value to be checked.
      Returns:
      Test result.
    • intersects

      boolean intersects(IValueSet set)
      Checks if the value set intersects with another one.
      Parameters:
      set - Other value set.
      Returns:
      Test result.
    • getIntersection

      IValueSet getIntersection(IValueSet set)
      Gets intersection of the value set with another one.
      Parameters:
      set - Other value set.
      Returns:
      Intersection of sets.
    • getDifference

      List<IValueSet> getDifference(IValueSet set)
      Get difference between the value set and another one.
      Parameters:
      set - Other value set.
      Returns:
      Difference of sets.
    • equals

      boolean equals(Object obj)
      Checks if the value set equals to another one.
      Overrides:
      equals in class Object
      Parameters:
      obj - Reference object.
      Returns:
      Test result.
    • hashCode

      int hashCode()
      Calculates hashcode of the value set.
      Overrides:
      hashCode in class Object
      Returns:
      Hashcode.
    • toString

      String toString()
      Converts the value set to a string.
      Overrides:
      toString in class Object
      Returns:
      Text representation of the value set.