public class StringRange extends AbstractRange<String>
PROPERTY_MAX, PROPERTY_MIN| Constructor and Description |
|---|
StringRange(String lower,
String upper) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjust(String lower,
String upper)
Adjusts the range.
|
int |
compareTo(Range o) |
boolean |
contains(String x)
Determines whether the supplied point lies within this range.
|
Range<String> |
createIntermediate(Range<String> targetRange,
double position) |
boolean |
equals(Object o) |
int |
hashCode() |
String |
lower() |
double |
maximum()
This may be the numeric representation of upper() or it may be rounded up.
|
double |
minimum()
This may be the numeric representation of lower() or it may be rounded down.
|
protected void |
setMax(String upper) |
protected void |
setMin(String lower) |
double |
size()
Compute the size of the range
|
String |
toString() |
String |
upper() |
addPropertyChangeListener, copy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListenerpublic Range<String> createIntermediate(Range<String> targetRange, double position)
createIntermediate in class AbstractRange<String>public String lower()
public String upper()
public void adjust(String lower, String upper)
Rangelower - the new smallest value of the rangeupper - the new largest value of the rangeprotected void setMin(String lower)
protected void setMax(String upper)
public double minimum()
Rangepublic double maximum()
Rangepublic double size()
Rangepublic boolean contains(String x)
Rangecontains() method is more like a set membership test.public int compareTo(Range o)
compareTo in interface Comparable<Range>compareTo in class AbstractRange<String>Copyright © 2017. All rights reserved.