|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jidesoft.range.AbstractRange<T>
com.jidesoft.range.AbstractNumericRange<Long>
com.jidesoft.range.LongRange
public class LongRange
Specifies upper and lower bounds for a range of values
| Field Summary | |
|---|---|
protected long |
_max
|
protected long |
_min
|
| Fields inherited from interface com.jidesoft.range.Range |
|---|
PROPERTY_MAX, PROPERTY_MIN |
| Constructor Summary | |
|---|---|
LongRange()
Creates a numeric range with minimum 0.0 and maximum of 1.0 |
|
LongRange(long min,
long max)
Create a numeric range by supplying minimum and maximum values |
|
LongRange(LongRange integerRange)
Constructs a copy of the supplied IntegerRange object |
|
| Method Summary | |
|---|---|
void |
adjust(Long lower,
Long upper)
Adjusts the range. |
boolean |
contains(Long x)
Determines whether the range contains the supplied value |
Range<Long> |
copy()
|
Range<Long> |
createIntermediate(Range<Long> targetRange,
double position)
|
boolean |
equals(Object other)
Test for equality based on the values of min and max |
long |
getMax()
|
long |
getMin()
|
int |
hashCode()
|
Long |
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. |
void |
setMax(long max)
Sets the maximum value |
void |
setMin(long min)
Sets the minimum value |
double |
size()
Compute the size of the range |
String |
toString()
|
Long |
upper()
|
| Methods inherited from class com.jidesoft.range.AbstractRange |
|---|
addPropertyChangeListener, compareTo, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected long _min
protected long _max
| Constructor Detail |
|---|
public LongRange()
public LongRange(long min,
long max)
min - the minimummax - the maximumpublic LongRange(LongRange integerRange)
integerRange - the long range object to copy| Method Detail |
|---|
public Range<Long> copy()
copy in class AbstractRange<Long>public double minimum()
Range
public double maximum()
Range
public long getMin()
public void setMin(long min)
min - the new minimum value.public long getMax()
public void setMax(long max)
max - the new maximum value.
public void adjust(Long lower,
Long upper)
Range
lower - the new smallest value of the rangeupper - the new largest value of the rangepublic double size()
Range
public Long lower()
public Long upper()
public boolean contains(Long x)
public Range<Long> createIntermediate(Range<Long> targetRange,
double position)
createIntermediate in class AbstractRange<Long>public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||