public class ComparisonResolver
extends java.lang.Object
Constructor and Description |
---|
ComparisonResolver(java.lang.String comparison)
Returns a comparison resolver for the given comparison string.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canParseComparison(java.lang.String comparison)
Returns whether the given comparison string can be parsed.
|
java.util.Set<Resolver> |
matchComparison(Resolver rootResolver)
Match the comparison to the given root resolver.
|
java.util.Set<Resolver> |
matchComparison(java.util.Set<Resolver> rootResolvers)
Match the comparison to the given set of root resolvers.
|
public ComparisonResolver(java.lang.String comparison)
comparison
- The comparison stringjava.lang.IllegalArgumentException
- If the given comparison string can't be parsed.public static boolean canParseComparison(java.lang.String comparison)
comparison
- The comparison to parse.public java.util.Set<Resolver> matchComparison(Resolver rootResolver)
rootResolver
- The root resolver to start the comparison at.public java.util.Set<Resolver> matchComparison(java.util.Set<Resolver> rootResolvers)
rootResolvers
- The root resolvers to start the comparison at.