Package ai.libs.jaicore.basic.sets
Class Interval
- java.lang.Object
-
- ai.libs.jaicore.basic.sets.Interval
-
- All Implemented Interfaces:
java.io.Serializable
public class Interval extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Interval(boolean isInteger, double min, double max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object item)booleanequals(java.lang.Object obj)doublegetMax()doublegetMin()inthashCode()booleanisInteger()voidsetInteger(boolean isInteger)voidsetMax(double max)voidsetMin(double min)booleansubsumes(Interval otherInterval)java.lang.StringtoString()
-
-
-
Method Detail
-
isInteger
public boolean isInteger()
-
getMin
public double getMin()
-
getMax
public double getMax()
-
setInteger
public void setInteger(boolean isInteger)
-
setMin
public void setMin(double min)
-
setMax
public void setMax(double max)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
contains
public boolean contains(java.lang.Object item)
-
subsumes
public boolean subsumes(Interval otherInterval)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-