|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.mathematics.analysis.Interval
public class Interval
A class representing an interval on N, Q, R...
| Field Summary | |
|---|---|
static Interval |
EMPTY
|
| Constructor Summary | |
|---|---|
Interval(ComparableNumber startValue,
ComparableNumber endValue)
|
|
Interval(Interval i)
Creates a new Interval object. |
|
| Method Summary | |
|---|---|
int |
cardinality()
Returns the cardinality (the number of elements). |
boolean |
contains(ComparableNumber value)
|
boolean |
contains(Interval interval)
|
boolean |
contains(java.lang.Object o)
Returns true if this set contains the specified element. |
boolean |
equals(java.lang.Object o)
DOCUMENT ME! |
java.lang.Class |
getDomain()
|
ComparableNumber |
getInf()
DOCUMENT ME! |
ComparableNumber |
getSup()
DOCUMENT ME! |
boolean |
happensAfter(Interval interval)
|
boolean |
happensBefore(Interval interval)
|
int |
hashCode()
Returns the hash code value for this set. |
Set |
intersection(Set set)
Performs the intersection of this set with another. |
boolean |
intersects(Interval interval)
|
boolean |
isEmpty()
Returns true if this set contains no elements. |
boolean |
isIncluded(Interval interval)
DOCUMENT ME! |
boolean |
isInfBoundIncluded()
DOCUMENT ME! |
boolean |
isSupBoundIncluded()
DOCUMENT ME! |
java.util.Iterator |
iterator()
Returns an iterator over the elements in this set. |
ComparableNumber |
length()
Returns the length between bounds. |
boolean |
overlaps(Interval interval)
|
Set |
remove(ComparableNumber c)
Removes the specified element from this set if it is present. |
Set |
remove(Interval i)
Removes the specified interval from this set if it is present. |
boolean |
remove(java.lang.Object o)
Removes the specified element from this set if it is present (optional operation). |
void |
setBoundValues(boolean included1,
boolean included2)
|
void |
setInfBoundValue(boolean included)
|
void |
setSupBoundValue(boolean included)
|
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this set. |
java.lang.String |
toString()
Returns a string representing this set. |
Set |
union(Set set)
Performs the union of this set with another. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Interval EMPTY
| Constructor Detail |
|---|
public Interval(ComparableNumber startValue,
ComparableNumber endValue)
public Interval(Interval i)
i - DOCUMENT ME!| Method Detail |
|---|
public ComparableNumber getInf()
public boolean isInfBoundIncluded()
public void setInfBoundValue(boolean included)
public ComparableNumber getSup()
public boolean isSupBoundIncluded()
public void setSupBoundValue(boolean included)
public void setBoundValues(boolean included1,
boolean included2)
public ComparableNumber length()
public boolean isEmpty()
Set
isEmpty in interface Setpublic java.lang.Class getDomain()
public boolean contains(java.lang.Object o)
contains in interface Seto - - element whose presence in this set is to be tested.
public boolean contains(Interval interval)
interval - DOCUMENT ME!
public boolean contains(ComparableNumber value)
value - DOCUMENT ME!
public boolean happensBefore(Interval interval)
public boolean happensAfter(Interval interval)
public boolean isIncluded(Interval interval)
interval - DOCUMENT ME!
public boolean overlaps(Interval interval)
public boolean intersects(Interval interval)
public int cardinality()
cardinality in interface Setpublic Set intersection(Set set)
Set
intersection in interface Setset - a set.
public Set union(Set set)
Set
union in interface Setset - a set.
public boolean remove(java.lang.Object o)
remove in interface Seto - - object to be removed from this set, if present.
public Set remove(ComparableNumber c)
c - - ComparableNumber to be removed from this set, if present.
public Set remove(Interval i)
i - - Interval to be removed from this set, if present.
public boolean equals(java.lang.Object o)
equals in interface Setequals in class java.lang.Objecto - DOCUMENT ME!
public int hashCode()
hashCode in interface SethashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator iterator()
iterator in interface Setpublic java.lang.Object[] toArray()
toArray in interface Set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||