|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.charset.Interval
public class Interval
Character interval.
| Constructor Summary | |
|---|---|
Interval(char c)
Constructs a new singleton character interval. |
|
Interval(char min,
char max)
Constructs a new character interval. |
|
| Method Summary | |
|---|---|
int |
compareTo(Interval v)
Compares two intervals with start character as primary key and end character as secondary key. |
boolean |
equals(Object obj)
|
char |
getMax()
Returns the end character of this interval. |
char |
getMin()
Returns the start character of this interval. |
int |
hashCode()
|
Interval |
intersection(Interval other)
Returns the intersection of two intervals, or null if the two interval do not intersect. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interval(char c)
public Interval(char min,
char max)
| Method Detail |
|---|
public int compareTo(Interval v)
compareTo in interface Comparable<Interval>public boolean equals(Object obj)
equals in class Objectpublic char getMax()
public char getMin()
public int hashCode()
hashCode in class Objectpublic Interval intersection(Interval other)
other - an interval. May be the same as this.
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||