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 boolean
contains(java.lang.Object item)
boolean
equals(java.lang.Object obj)
double
getMax()
double
getMin()
int
hashCode()
boolean
isInteger()
void
setInteger(boolean isInteger)
void
setMax(double max)
void
setMin(double min)
boolean
subsumes(Interval otherInterval)
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
contains
public boolean contains(java.lang.Object item)
-
subsumes
public boolean subsumes(Interval otherInterval)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-