public class ComparableConditionInspector<T extends Comparable<T>> extends ConditionInspector implements Covers<T>
Modifier and Type | Field and Description |
---|---|
protected Operator |
operator |
protected T |
value |
key
Constructor and Description |
---|
ComparableConditionInspector(org.drools.workbench.models.guided.dtable.shared.model.Pattern52 pattern,
String factField,
T value,
String operator) |
Modifier and Type | Method and Description |
---|---|
boolean |
conflicts(Object other) |
boolean |
covers(Comparable<T> otherValue) |
Operator |
getOperator() |
T |
getValue() |
boolean |
hasValue() |
boolean |
isRedundant(Object object) |
boolean |
overlaps(Object other) |
boolean |
subsumes(Object other) |
String |
toHumanReadableString() |
protected boolean |
valueIsEqualTo(Comparable<T> otherValue) |
protected boolean |
valueIsGreaterThan(Comparable<T> otherValue) |
protected boolean |
valueIsGreaterThanOrEqualTo(Comparable<T> otherValue) |
protected boolean |
valueIsLessThan(Comparable<T> otherValue) |
protected boolean |
valueIsLessThanOrEqualTo(Comparable<T> otherValue) |
equals, getFactField, getKey, getPattern, hashCode, nullSafeEquals
protected final Operator operator
protected final T extends Comparable<T> value
public T getValue()
public Operator getOperator()
public boolean conflicts(Object other)
conflicts
in interface IsConflicting
public boolean isRedundant(Object object)
isRedundant
in interface IsRedundant
public boolean hasValue()
hasValue
in class ConditionInspector
public boolean overlaps(Object other)
overlaps
in interface IsOverlapping
public boolean subsumes(Object other)
subsumes
in interface IsSubsuming
public boolean covers(Comparable<T> otherValue)
covers
in interface Covers<T extends Comparable<T>>
protected boolean valueIsGreaterThanOrEqualTo(Comparable<T> otherValue)
protected boolean valueIsLessThanOrEqualTo(Comparable<T> otherValue)
protected boolean valueIsGreaterThan(Comparable<T> otherValue)
protected boolean valueIsLessThan(Comparable<T> otherValue)
protected boolean valueIsEqualTo(Comparable<T> otherValue)
public String toHumanReadableString()
toHumanReadableString
in class ConditionInspector
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.