public class Range<T> extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Range() |
|
Range(T row) |
|
Range(T start,
boolean inclusiveStart,
T end,
boolean inclusiveEnd)
Creates a range object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
T |
getEnd() |
String |
getPrefix() |
T |
getStart() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isInclusiveEnd() |
boolean |
isInclusiveStart() |
boolean |
isInRange(Object obj) |
static IdRange |
prefix(String prefix) |
void |
setPrefix(String prefix) |
String |
toString() |
protected Range()
public Range(T start, boolean inclusiveStart, T end, boolean inclusiveEnd)
start - The start value. null if the start of all.inclusiveStart - true, if the start value should be included.end - The end value. null if the end of all.inclusiveEnd - true, if the end value should be included.public Range(T row)
public T getStart()
public boolean isInclusiveStart()
public T getEnd()
public boolean isInclusiveEnd()
public boolean isInRange(Object obj)
public void setPrefix(String prefix)
public String getPrefix()
public boolean isEmpty()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.