public class ComparisonExpectValuedPredicate<V> extends ExpectValuedPredicate<V> implements DelegatableComparator<V>
| 构造器和说明 |
|---|
ComparisonExpectValuedPredicate() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compare(V o1,
V o2) |
protected boolean |
doTest(V actualValue) |
Comparator<V> |
getDelegate() |
boolean |
isInclusive() |
boolean |
isLessThan() |
void |
setDelegate(Comparator<V> delegate) |
void |
setInclusive(boolean inclusive) |
void |
setLessThan(boolean lessThan) |
getExpectedValue, setExpectedValuetestpublic boolean isInclusive()
public void setInclusive(boolean inclusive)
public boolean isLessThan()
public void setLessThan(boolean lessThan)
protected boolean doTest(V actualValue)
doTest 在类中 ExpectValuedPredicate<V>public Comparator<V> getDelegate()
getDelegate 在接口中 Delegatable<Comparator<V>>getDelegate 在接口中 DelegatableComparator<V>public void setDelegate(Comparator<V> delegate)
setDelegate 在接口中 Delegatable<Comparator<V>>setDelegate 在接口中 DelegatableComparator<V>public int compare(V o1, V o2)
compare 在接口中 DelegatableComparator<V>compare 在接口中 Comparator<V>Copyright © 2021. All rights reserved.