@Beta public final class PointBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PointBuilder.Discriminator |
Modifier and Type | Field and Description |
---|---|
private ArrayList<String> |
dimensions |
private ArrayList<Value> |
location |
Constructor and Description |
---|
PointBuilder() |
PointBuilder(Point p) |
Modifier and Type | Method and Description |
---|---|
Point |
build()
Create a new Point instance using the settings stored in this
PointBuilder.
|
PointBuilder |
set(String dimensionName,
double dimensionValue)
Set a named dimension to a floating point value.
|
PointBuilder |
set(String dimensionName,
long dimensionValue)
Set a named dimension to an integer value.
|
PointBuilder |
set(String dimensionName,
String dimensionValue)
Set a named dimension to a string value.
|
private PointBuilder |
set(String axisName,
Value w) |
String |
toString() |
PointBuilder()
PointBuilder(Point p)
public PointBuilder set(String dimensionName, long dimensionValue)
dimensionName
- the name of the dimension to setdimensionValue
- to value for the given dimensionpublic PointBuilder set(String dimensionName, double dimensionValue)
dimensionName
- the name of the dimension to setdimensionValue
- to value for the given dimensionpublic PointBuilder set(String dimensionName, String dimensionValue)
dimensionName
- the name of the dimension to setdimensionValue
- to value for the given dimensionprivate PointBuilder set(String axisName, Value w)
public Point build()
Copyright © 2018. All rights reserved.