|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.internal.AbstractComparisonStrategy
public abstract class AbstractComparisonStrategy
Base implementation of ComparisonStrategy contract.
| Constructor Summary | |
|---|---|
AbstractComparisonStrategy()
|
|
| Method Summary | |
|---|---|
boolean |
arrayContains(Object array,
Object value)
Returns true if given array contains given value according to the implemented comparison strategy, false otherwise. |
abstract String |
asText()
|
Iterable<?> |
duplicatesFrom(Iterable<?> iterable)
Returns any duplicate elements from the given Iterable according to the implemented comparison strategy. |
boolean |
isGreaterThanOrEqualTo(Object actual,
Object other)
Returns true if actual is greater than or equal to other, false otherwise. |
boolean |
isLessThan(Object actual,
Object other)
Returns true if actual is less than other, false otherwise. |
boolean |
isLessThanOrEqualTo(Object actual,
Object other)
Returns true if actual is less than or equal to other, false otherwise. |
boolean |
isStandard()
Return true if comparison strategy is default/standard, false otherwise |
protected abstract Set<Object> |
newSetUsingComparisonStrategy()
Returns a Set honoring the comparison strategy used. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.assertj.core.internal.ComparisonStrategy |
|---|
areEqual, isGreaterThan, iterableContains, iterableRemoves, stringContains, stringEndsWith, stringStartsWith |
| Constructor Detail |
|---|
public AbstractComparisonStrategy()
| Method Detail |
|---|
public Iterable<?> duplicatesFrom(Iterable<?> iterable)
ComparisonStrategyIterable according to the implemented comparison strategy.
duplicatesFrom in interface ComparisonStrategyiterable - the given Iterable we want to extract duplicate elements.
Iterable containing the duplicate elements of the given one. If no duplicates are found, an empty
Iterable is returned.protected abstract Set<Object> newSetUsingComparisonStrategy()
Set honoring the comparison strategy used.
Set honoring the comparison strategy used.
public boolean arrayContains(Object array,
Object value)
ComparisonStrategy
arrayContains in interface ComparisonStrategyarray - the array to search value in (must not be null)value - the object to look for in given array
public boolean isLessThan(Object actual,
Object other)
ComparisonStrategy
isLessThan in interface ComparisonStrategyactual - the object to compare to otherother - the object to compare to actual
public boolean isLessThanOrEqualTo(Object actual,
Object other)
ComparisonStrategy
isLessThanOrEqualTo in interface ComparisonStrategyactual - the object to compare to otherother - the object to compare to actual
public boolean isGreaterThanOrEqualTo(Object actual,
Object other)
ComparisonStrategy
isGreaterThanOrEqualTo in interface ComparisonStrategyactual - the object to compare to otherother - the object to compare to actual
public abstract String asText()
public boolean isStandard()
ComparisonStrategy
isStandard in interface ComparisonStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||