public final class DefaultCubeMetadataBuilder extends Object
This is created using DefaultCubeMetadata.builder().
| Modifier and Type | Method and Description |
|---|---|
<T> DefaultCubeMetadataBuilder |
addInfo(CubeInfoType<T> type,
T value)
Adds a single piece of additional information.
|
DefaultCubeMetadata |
build()
Builds the metadata instance.
|
DefaultCubeMetadataBuilder |
clearParameterMetadata()
Clears the parameter-level metadata.
|
DefaultCubeMetadataBuilder |
cubeName(CubeName cubeName)
Sets the cube name.
|
DefaultCubeMetadataBuilder |
cubeName(String cubeName)
Sets the cube name.
|
DefaultCubeMetadataBuilder |
dayCount(DayCount dayCount)
Sets the day count.
|
DefaultCubeMetadataBuilder |
parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
Sets the parameter-level metadata.
|
DefaultCubeMetadataBuilder |
parameterMetadata(ParameterMetadata... parameterMetadata)
Sets the parameter-level metadata.
|
DefaultCubeMetadataBuilder |
wValueType(ValueType wValueType)
Sets the w-value type, providing meaning to the w-values of the cube.
|
DefaultCubeMetadataBuilder |
xValueType(ValueType xValueType)
Sets the x-value type, providing meaning to the x-values of the cube.
|
DefaultCubeMetadataBuilder |
yValueType(ValueType yValueType)
Sets the y-value type, providing meaning to the y-values of the cube.
|
DefaultCubeMetadataBuilder |
zValueType(ValueType zValueType)
Sets the z-value type, providing meaning to the z-values of the cube.
|
public DefaultCubeMetadataBuilder cubeName(String cubeName)
cubeName - the cube namepublic DefaultCubeMetadataBuilder cubeName(CubeName cubeName)
cubeName - the cube namepublic DefaultCubeMetadataBuilder xValueType(ValueType xValueType)
This type provides meaning to the x-values.
If using the builder, this defaults to ValueType.UNKNOWN.
xValueType - the x-value typepublic DefaultCubeMetadataBuilder yValueType(ValueType yValueType)
This type provides meaning to the y-values.
If using the builder, this defaults to ValueType.UNKNOWN.
yValueType - the y-value typepublic DefaultCubeMetadataBuilder zValueType(ValueType zValueType)
This type provides meaning to the z-values.
If using the builder, this defaults to ValueType.UNKNOWN.
zValueType - the z-value typepublic DefaultCubeMetadataBuilder wValueType(ValueType wValueType)
This type provides meaning to the w-values.
If using the builder, this defaults to ValueType.UNKNOWN.
wValueType - the w-value typepublic DefaultCubeMetadataBuilder dayCount(DayCount dayCount)
This stores the day count in the additional information map using the
key CubeInfoType.DAY_COUNT.
This is stored in the additional information map using Map.put semantics,
removing the key if the day count is null.
dayCount - the day count, may be nullpublic <T> DefaultCubeMetadataBuilder addInfo(CubeInfoType<T> type, T value)
This is stored in the additional information map using Map.put semantics,
removing the key if the instance is null.
T - the type of the infotype - the type to store undervalue - the value to store, may be nullpublic DefaultCubeMetadataBuilder parameterMetadata(List<? extends ParameterMetadata> parameterMetadata)
The parameter metadata must match the number of parameters on the cube. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultCubeMetadataBuilder parameterMetadata(ParameterMetadata... parameterMetadata)
The parameter metadata must match the number of parameters on the cube. This will replace the existing parameter-level metadata.
parameterMetadata - the parameter metadatapublic DefaultCubeMetadataBuilder clearParameterMetadata()
The existing parameter-level metadata will be removed.
public DefaultCubeMetadata build()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.