Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Optional<T> |
getLowerBound() |
Optional<T> |
getUpperBound() |
int |
hashCode() |
static <T> Range<T> |
newBounded(T lowerBound,
T upperBound)
Creates a new
Range bounded in both directions. |
static <T> Range<T> |
newLowerBounded(T lowerBound)
Creates a new
Range bounded in the lower direction. |
static <T> Range<T> |
newUnbounded()
Creates a new
Range unbounded in either direction. |
static <T> Range<T> |
newUpperBounded(T upperBound)
Creates a new
Range bounded in the upper direction. |
String |
toString() |
public static <T> Range<T> newUnbounded()
Range
unbounded in either direction.public static <T> Range<T> newLowerBounded(T lowerBound)
Range
bounded in the lower direction.public static <T> Range<T> newUpperBounded(T upperBound)
Range
bounded in the upper direction.public static <T> Range<T> newBounded(T lowerBound, T upperBound)
Range
bounded in both directions.protected boolean canEqual(Object other)
Copyright © 2025. All rights reserved.