T - the type of the object to comparepublic abstract class SpeakingComparableAdapter<T> extends Object implements SpeakingComparable<T>
SpeakingComparable which rely on
Comparable#compareTo(Object).| Constructor and Description |
|---|
SpeakingComparableAdapter() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
compareTo(T other) |
boolean |
equalsTo(T other)
Returns true if
this is equals other. |
boolean |
greaterOrEqualsThan(T other)
Returns true if
this is greater or equals than other. |
boolean |
greaterThan(T other)
Returns true if
this is greater than other. |
boolean |
lessOrEqualsThan(T other)
Returns true if
this is less or equals than other. |
boolean |
lessThan(T other)
Returns true if
this is less than other. |
boolean |
notEqualsTo(T other)
Returns true if
this is not equals other. |
public abstract int compareTo(T other)
compareTo in interface Comparable<T>public boolean equalsTo(T other)
SpeakingComparablethis is equals other.equalsTo in interface SpeakingComparable<T>other - to comparepublic boolean notEqualsTo(T other)
SpeakingComparablethis is not equals other.notEqualsTo in interface SpeakingComparable<T>other - to comparepublic boolean greaterThan(T other)
SpeakingComparablethis is greater than other.greaterThan in interface SpeakingComparable<T>other - to comparepublic boolean greaterOrEqualsThan(T other)
SpeakingComparablethis is greater or equals than other.greaterOrEqualsThan in interface SpeakingComparable<T>other - to comparepublic boolean lessThan(T other)
SpeakingComparablethis is less than other.lessThan in interface SpeakingComparable<T>other - to comparepublic boolean lessOrEqualsThan(T other)
SpeakingComparablethis is less or equals than other.lessOrEqualsThan in interface SpeakingComparable<T>other - to compareCopyright © 2014–2015. All rights reserved.