ComparisonStrategy contract.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | arrayContains(Object
the array to search value in (must not be null) array, Object the object to look for in given array value)Implements org. |
| public Iterable | duplicatesFrom(Iterable<?>
the given iterable)Iterable we want to extract duplicate elements.Implements org. Iterable according to the implemented comparison strategy.
|
| public boolean | isGreaterThanOrEqualTo(Object
the object to compare to other actual, Object the object to compare to actual other)Implements org. |
| public boolean | isLessThan(Object
the object to compare to other actual, Object the object to compare to actual other)Implements org. |
| public boolean | isLessThanOrEqualTo(Object
the object to compare to other actual, Object the object to compare to actual other)Implements org. |
| public boolean | isStandard()
Implements org. |
| protected abstract Set | Returns: aSet honoring the comparison strategy used.Returns a |
| AbstractComparisonStrategy | back to summary |
|---|---|
| public AbstractComparisonStrategy() | |
| arrayContains | back to summary |
|---|---|
| public boolean arrayContains(Object array, Object value) Implements org. Doc from org. Returns true if given array contains given value according to the implemented comparison strategy, false otherwise. | |
| duplicatesFrom | back to summary |
|---|---|
| public Iterable Implements org. Doc from org. Returns any duplicate elements from the given | |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public boolean isGreaterThanOrEqualTo(Object actual, Object other) Implements org. Doc from org. Returns true if actual is greater than or equal to other, false otherwise. | |
| isLessThan | back to summary |
|---|---|
| public boolean isLessThan(Object actual, Object other) Implements org. Doc from org. Returns true if actual is less than other, false otherwise. | |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public boolean isLessThanOrEqualTo(Object actual, Object other) Implements org. Doc from org. Returns true if actual is less than or equal to other, false otherwise. | |
| isStandard | back to summary |
|---|---|
| public boolean isStandard() Implements org. Doc from org. Return true if comparison strategy is default/standard, false otherwise
| |
| newSetUsingComparisonStrategy | back to summary |
|---|---|
| protected abstract Set Returns a | |