public class TLcdDimension<T> extends Object implements ILcdDimension<T>
Default implementation of ILcdDimension
. This class can be created using
the builder pattern. See newBuilder()
and TLcdDimension.Builder
.
Modifier and Type | Class and Description |
---|---|
static class |
TLcdDimension.Builder<T>
Builder for dimension axis values.
|
Modifier and Type | Method and Description |
---|---|
TLcdDimension.Builder<T> |
asBuilder()
Returns the given
TLcdDimensionAxis as a builder. |
boolean |
equals(Object aObject) |
TLcdDimensionAxis<T> |
getAxis()
Returns the axis in which the possible values are defined.
|
TLcdDimensionInterval<T> |
getUnionOfValues()
Returns the union of the ranges in which data can be available.
|
List<TLcdDimensionInterval<T>> |
getValues()
Returns the intervals in which data can be available for this axis.
|
int |
hashCode() |
static <T> TLcdDimension.Builder<T> |
newBuilder()
Returns a new builder using which a
TLcdDimension can
be constructed. |
String |
toString() |
public TLcdDimensionAxis<T> getAxis()
ILcdDimension
getAxis
in interface ILcdDimension<T>
public TLcdDimensionInterval<T> getUnionOfValues()
ILcdDimension
getValues
.getUnionOfValues
in interface ILcdDimension<T>
null
.public List<TLcdDimensionInterval<T>> getValues()
ILcdDimension
TLcdDimensionInterval.equals()
.
The list may contain overlapping intervals though.
Models offering logically infinite intervals such as "every week day on Monday" will have to limit the intervals
they offer to a practical finite collection.getValues
in interface ILcdDimension<T>
null
.public static <T> TLcdDimension.Builder<T> newBuilder()
TLcdDimension
can
be constructed.public TLcdDimension.Builder<T> asBuilder()
TLcdDimensionAxis
as a builder. This
builder instance can be modify and used to create a new TLcdDimensionAxis
.TLcdDimensionAxis
as a builder.