Package org.gbif.api.model.metrics.cube
Class ReadBuilder
- java.lang.Object
-
- org.gbif.api.model.metrics.cube.ReadBuilder
-
@NotThreadSafe public class ReadBuilder extends Object
Provides building of addresses for reading the cube. This class ensures the type safety of dimensions as they are added to the builder.
-
-
Constructor Summary
Constructors Constructor Description ReadBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadBuilder
at(Dimension<? extends Enum<?>> dim, Enum<?> value)
Adds an enumerated type dimension to the address.ReadBuilder
at(Dimension<Boolean> dim, boolean value)
Adds a boolen typed dimension to the address.ReadBuilder
at(Dimension<Double> dim, double value)
Adds a double typed dimension to the address.ReadBuilder
at(Dimension<Float> dim, float value)
Adds a float typed dimension to the address.ReadBuilder
at(Dimension<Integer> dim, int value)
Adds an integer typed dimension to the address.ReadBuilder
at(Dimension<String> dim, String value)
Adds an String typed dimension to the address.ReadBuilder
at(Dimension<UUID> dim, UUID value)
Adds a UUID typed dimension to the address.ReadBuilder
at(Dimension<Country> dim, Country value)
Adds an country type dimension to the address.ReadBuilder
at(Dimension<Language> dim, Language value)
Adds an language type dimension to the address.Map<Dimension<?>,String>
build()
-
-
-
Constructor Detail
-
ReadBuilder
public ReadBuilder()
-
-
Method Detail
-
at
public ReadBuilder at(Dimension<Country> dim, Country value)
Adds an country type dimension to the address.
-
at
public ReadBuilder at(Dimension<Language> dim, Language value)
Adds an language type dimension to the address.
-
at
public ReadBuilder at(Dimension<? extends Enum<?>> dim, Enum<?> value)
Adds an enumerated type dimension to the address.
-
at
public ReadBuilder at(Dimension<Boolean> dim, boolean value)
Adds a boolen typed dimension to the address.
-
at
public ReadBuilder at(Dimension<Double> dim, double value)
Adds a double typed dimension to the address.
-
at
public ReadBuilder at(Dimension<Float> dim, float value)
Adds a float typed dimension to the address.
-
at
public ReadBuilder at(Dimension<Integer> dim, int value)
Adds an integer typed dimension to the address.
-
at
public ReadBuilder at(Dimension<String> dim, String value)
Adds an String typed dimension to the address.
-
at
public ReadBuilder at(Dimension<UUID> dim, UUID value)
Adds a UUID typed dimension to the address.
-
-