public static class QueryProfileVariants.FieldValue extends Object implements Comparable<QueryProfileVariants.FieldValue>, Cloneable
Constructor and Description |
---|
FieldValue(DimensionValues dimensionValues,
Object value) |
Modifier and Type | Method and Description |
---|---|
QueryProfileVariants.FieldValue |
clone() |
QueryProfileVariants.FieldValue |
clone(String fieldName,
List<QueryProfileVariant> clonedVariants)
Clone by filling in the value from the given variants
|
int |
compareTo(QueryProfileVariants.FieldValue other)
Implements the sort order of this which is based on specificity
where dimensions to the left are more significant.
|
DimensionValues |
getDimensionValues()
Returns the dimension values for which this value should be used.
|
Object |
getValue()
Returns the value to use for this set of dimension values
|
boolean |
matches(DimensionValues givenDimensionValues) |
void |
setValue(Object value)
Sets the value to use for this set of dimension values
|
public FieldValue(DimensionValues dimensionValues, Object value)
public DimensionValues getDimensionValues()
public Object getValue()
public void setValue(Object value)
public boolean matches(DimensionValues givenDimensionValues)
public int compareTo(QueryProfileVariants.FieldValue other)
Note: This ordering is not consistent with equals - it returns 0 when the same dimensions are set, regardless of what they are set to.
compareTo
in interface Comparable<QueryProfileVariants.FieldValue>
public QueryProfileVariants.FieldValue clone(String fieldName, List<QueryProfileVariant> clonedVariants)
public QueryProfileVariants.FieldValue clone()
Copyright © 2018. All rights reserved.