public class Binding extends Object implements Comparable<Binding>
Modifier and Type | Field and Description |
---|---|
static Binding |
nullBinding |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Binding other)
Implements a partial ordering where more specific bindings come before less specific ones,
taking both the number of bindings and their positions into account (earlier dimensions
take precedence over later ones.
|
static Binding |
createFrom(DimensionBinding dimensionBinding) |
boolean |
equals(Object o)
Returns whether the given binding has exactly the same values as this
|
int |
hashCode() |
boolean |
isNull()
Returns true only if this binding is null (contains no values for its dimensions (if any)
|
boolean |
matches(Map<String,String> context)
Returns true if all the dimension values in this have the same values
in the given context.
|
String |
toString() |
public static final Binding nullBinding
public static Binding createFrom(DimensionBinding dimensionBinding)
public boolean isNull()
public boolean equals(Object o)
public boolean matches(Map<String,String> context)
public int compareTo(Binding other)
The order is not well defined for bindings in different dimensional spaces.
compareTo
in interface Comparable<Binding>
Copyright © 2018. All rights reserved.