|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.attributes.IntervalCollection
public class IntervalCollection
This class is intented for use with parametrizable attributes. It carries possible values for an interval which could be intervals and/or points.
Constructor Summary | |
---|---|
protected |
IntervalCollection()
|
|
IntervalCollection(java.lang.String name)
Creates an interval collection with a name. |
Method Summary | |
---|---|
void |
add(Interval interval)
Adds an interval to the list of intervals in this collection. |
java.lang.Object |
clone()
Clone this IntervalCollection. |
static Interval |
combine(Interval interval1,
Interval interval2)
Combine two intervals if they can be expressed as a single interval. |
boolean |
equals(java.lang.Object collection)
Returns true if two collection contains the same mathematical intervals. |
java.util.List |
getIntervals()
Returns a list of intervals and defines this collection. |
java.lang.String |
getName()
Returns the name of this collection. |
int |
hashCode()
|
java.lang.String |
toString()
Prints out the collection of intervals and points in this object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected IntervalCollection()
public IntervalCollection(java.lang.String name)
DIFWriter
s to work properly,
different parameters should have different names.
name
- Name of the parameter.Method Detail |
---|
public void add(Interval interval)
interval
- Interval that will be added to the collection. To add
a single point 'a', [a, a] can be used.public java.lang.Object clone()
clone
in class java.lang.Object
public static Interval combine(Interval interval1, Interval interval2)
public boolean equals(java.lang.Object collection)
equals
in class java.lang.Object
public java.util.List getIntervals()
Interval
s. It is a
copy of the original list that defines this collection.public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |