public final class Domain extends Object
| Constructor and Description |
|---|
Domain(SortedRangeSet ranges,
boolean nullAllowed) |
| Modifier and Type | Method and Description |
|---|---|
static Domain |
all(Class<?> type) |
Domain |
complement() |
boolean |
contains(Domain other) |
static Domain |
create(SortedRangeSet ranges,
boolean nullAllowed) |
boolean |
equals(Object obj) |
Comparable<?> |
getNullableSingleValue() |
SortedRangeSet |
getRanges()
Returns a SortedRangeSet to represent the set of scalar values that are allowed in this Domain.
|
Comparable<?> |
getSingleValue() |
Class<?> |
getType() |
int |
hashCode() |
boolean |
includesValue(Comparable<?> value) |
Domain |
intersect(Domain other) |
boolean |
isAll() |
boolean |
isNone() |
boolean |
isNullableSingleValue() |
boolean |
isNullAllowed() |
boolean |
isOnlyNull() |
boolean |
isSingleValue() |
static Domain |
none(Class<?> type) |
static Domain |
notNull(Class<?> type) |
static Domain |
onlyNull(Class<?> type) |
boolean |
overlaps(Domain other) |
static Domain |
singleValue(Comparable<?> value) |
Domain |
subtract(Domain other) |
String |
toString() |
Domain |
union(Domain other) |
static Domain |
union(List<Domain> domains) |
public Domain(SortedRangeSet ranges, boolean nullAllowed)
public static Domain create(SortedRangeSet ranges, boolean nullAllowed)
public static Domain singleValue(Comparable<?> value)
public Class<?> getType()
public SortedRangeSet getRanges()
public boolean isNullAllowed()
public boolean isNone()
public boolean isAll()
public boolean isSingleValue()
public boolean isNullableSingleValue()
public boolean isOnlyNull()
public Comparable<?> getSingleValue()
public Comparable<?> getNullableSingleValue()
public boolean includesValue(Comparable<?> value)
public boolean overlaps(Domain other)
public boolean contains(Domain other)
public Domain complement()
Copyright © 2012-2014. All Rights Reserved.