org.jboss.kernel.plugins.dependency
Class IntervalMatcher
java.lang.Object
org.jboss.kernel.api.dependency.NonNullMatcher
org.jboss.kernel.api.dependency.ClassMatcher<Number>
org.jboss.kernel.api.dependency.NumberMatcher
org.jboss.kernel.plugins.dependency.IntervalMatcher
- All Implemented Interfaces:
- Serializable, Matcher
public class IntervalMatcher
- extends NumberMatcher
- implements Serializable
Interval matcher.
- Author:
- Ales Justin
- See Also:
- Serialized Form
IntervalMatcher
public IntervalMatcher(Number floor,
Number ceiling,
boolean floorIsGreaterThan,
boolean ceilingIsLessThan)
compareTo
protected int compareTo(Number other,
Number edge,
int defaultValue)
- Compare other value with edge value.
Return default value if edge is null.
- Parameters:
other
- the otheredge
- the edgedefaultValue
- default value
- Returns:
- -1 if edge greater than other, 1 if other greater than edge, 0 if equal
matchByType
protected boolean matchByType(Number other)
- Description copied from class:
ClassMatcher
- Match by type.
- Specified by:
matchByType
in class ClassMatcher<Number>
- Parameters:
other
- the T para to match
- Returns:
- true if matched, false otherwise
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.