| java.lang.Object org.springunit.examples.Range
Range | public class Range (Code) | | |
Constructor Summary | |
public | Range() | public | Range(T upper, T lower) |
Range | public Range()(Code) | | Create range without specified bounds.
|
Range | public Range(T upper, T lower)(Code) | | Create range with upper
and lower bounds.
Parameters: upper - Upper bound of range Parameters: lower - Lower bound of range |
equals | public boolean equals(Object obj)(Code) | | Is this equal to obj?
|
getLower | public T getLower()(Code) | | Lower bound of range.
T |
getUpper | public T getUpper()(Code) | | Upper bound of range.
T |
hashCode | public int hashCode()(Code) | | Hash code.
|
isWithin | public boolean isWithin(T item)(Code) | | Is item between upper and lower
bounds?
|
setLower | public void setLower(T lower)(Code) | | Lower bound of range.
Parameters: lower - New lower bound |
setUpper | public void setUpper(T upper)(Code) | | Upper bound of range.
Parameters: upper - New upper bound |
toString | public String toString()(Code) | | String representation.
|
|
|