Class TLcdDimension<T>

java.lang.Object
com.luciad.multidimensional.TLcdDimension<T>
All Implemented Interfaces:
ILcdDimension<T>

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.

Since:
2015.0
  • Method Details

    • getAxis

      public TLcdDimensionAxis<T> getAxis()
      Description copied from interface: ILcdDimension
      Returns the axis in which the possible values are defined.
      Specified by:
      getAxis in interface ILcdDimension<T>
      Returns:
      the axis in which the possible values are defined.
    • getUnionOfValues

      public TLcdDimensionInterval<T> getUnionOfValues()
      Description copied from interface: ILcdDimension
      Returns the union of the ranges in which data can be available. The returned object is a union of the intervals returned by getValues.
      Specified by:
      getUnionOfValues in interface ILcdDimension<T>
      Returns:
      the union of the values of this axis in which data can be available, possibly empty or the unbounded interval but never null.
    • getValues

      public List<TLcdDimensionInterval<T>> getValues()
      Description copied from interface: ILcdDimension
      Returns the intervals in which data can be available for this axis. The list of intervals is finite, is sorted, and contains no duplicates according to 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.

      Specified by:
      getValues in interface ILcdDimension<T>
      Returns:
      the intervals in which data can be available for this axis, possibly empty but never null.
    • newBuilder

      public static <T> TLcdDimension.Builder<T> newBuilder()
      Returns a new builder using which a TLcdDimension can be constructed.
      Returns:
      a new dimension axis values builder.
    • asBuilder

      public TLcdDimension.Builder<T> asBuilder()
      Returns the given TLcdDimensionAxis as a builder. This builder instance can be modify and used to create a new TLcdDimensionAxis.
      Returns:
      the given TLcdDimensionAxis as a builder.
    • equals

      public boolean equals(Object aObject)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object