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)
SpeakingComparable
this
is equals other
.equalsTo
in interface SpeakingComparable<T>
other
- to comparepublic boolean notEqualsTo(T other)
SpeakingComparable
this
is not equals other
.notEqualsTo
in interface SpeakingComparable<T>
other
- to comparepublic boolean greaterThan(T other)
SpeakingComparable
this
is greater than other
.greaterThan
in interface SpeakingComparable<T>
other
- to comparepublic boolean greaterOrEqualsThan(T other)
SpeakingComparable
this
is greater or equals than other
.greaterOrEqualsThan
in interface SpeakingComparable<T>
other
- to comparepublic boolean lessThan(T other)
SpeakingComparable
this
is less than other
.lessThan
in interface SpeakingComparable<T>
other
- to comparepublic boolean lessOrEqualsThan(T other)
SpeakingComparable
this
is less or equals than other
.lessOrEqualsThan
in interface SpeakingComparable<T>
other
- to compareCopyright © 2014–2015. All rights reserved.