public class QueryProfileVariant extends Object implements Cloneable, Comparable<QueryProfileVariant>
Modifier and Type | Field and Description |
---|---|
private DimensionValues |
dimensionValues |
private boolean |
frozen |
private List<QueryProfile> |
inherited |
private QueryProfile |
owner |
private Map<String,Object> |
values |
Constructor and Description |
---|
QueryProfileVariant(DimensionValues dimensionValues,
QueryProfile owner) |
Modifier and Type | Method and Description |
---|---|
void |
accept(boolean allowContent,
QueryProfileType type,
QueryProfileVisitor visitor,
DimensionBinding dimensionBinding)
Accepts a visitor to the values of this
|
QueryProfileVariant |
clone() |
int |
compareTo(QueryProfileVariant other)
Implements the sort order of this which is based on specificity
where dimensions to the left are more significant.
|
void |
freeze() |
DimensionValues |
getDimensionValues() |
void |
inherit(QueryProfile profile) |
List<QueryProfile> |
inherited()
Returns the live reference to the inherited profiles of this.
|
boolean |
matches(DimensionValues givenDimensionValues) |
void |
set(String key,
Object newValue) |
String |
toString() |
Map<String,Object> |
values()
Returns the live reference to the values of this.
|
private List<QueryProfile> inherited
private DimensionValues dimensionValues
private boolean frozen
private QueryProfile owner
public QueryProfileVariant(DimensionValues dimensionValues, QueryProfile owner)
public DimensionValues getDimensionValues()
public Map<String,Object> values()
public List<QueryProfile> inherited()
public void inherit(QueryProfile profile)
public int compareTo(QueryProfileVariant 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<QueryProfileVariant>
public boolean matches(DimensionValues givenDimensionValues)
public void accept(boolean allowContent, QueryProfileType type, QueryProfileVisitor visitor, DimensionBinding dimensionBinding)
public void freeze()
public QueryProfileVariant clone()
Copyright © 2017. All rights reserved.