|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.filters.PartialOrderAcceptLessEqual<E>
org.jjoost.util.filters.AcceptLessEqual<E>
public class AcceptLessEqual<E extends java.lang.Comparable<? super E>>
A partial order filter that accepts everything less than or equal to the provided value, as determined by the Comparator
provided to its methods by utilising classes.
This class implements both Filter and FilterPartialOrder; the Filter
accept()method delegates to the object's compareTo() method, whereas the FilterPartialOrder
methods utilise the provided comparator.
| Constructor Summary | |
|---|---|
AcceptLessEqual(E than)
Constructs a new partial order filter that accepts everything less than oe equal to the provided value, as determined by the Comparator
provided to its methods by utilising classes. |
|
| Method Summary | ||
|---|---|---|
boolean |
accept(E test)
Returns true if the Filter accepts the parameter and false otherwise |
|
static
|
get(E than)
Constructs a new partial order filter that accepts everything less than or equal to the provided value as determined by the Comparator
provided to its methods by utilising classes. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class org.jjoost.util.filters.PartialOrderAcceptLessEqual |
|---|
accept, mayAcceptBetween, mayRejectBetween |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jjoost.util.FilterPartialOrder |
|---|
accept, mayAcceptBetween, mayRejectBetween |
| Constructor Detail |
|---|
public AcceptLessEqual(E than)
Comparator
provided to its methods by utilising classes.
Returns an object implementing both Filter and FilterPartialOrder; the Filter
accept()method delegates to the object's compareTo() method, whereas the FilterPartialOrder
methods utilise the provided comparator
than - inclusive upper limit of acceptable values| Method Detail |
|---|
public boolean accept(E test)
Filtertrue if the Filter accepts the parameter and false otherwise
accept in interface Filter<E extends java.lang.Comparable<? super E>>test - value to test
true if the filter accepts test; false otherwisepublic static <E extends java.lang.Comparable<? super E>> AcceptLessEqual<E> get(E than)
Comparator
provided to its methods by utilising classes.
Returns an object implementing both Filter and FilterPartialOrder; the Filter
accept()method delegates to the object's compareTo() method, whereas the FilterPartialOrder
methods utilise the provided comparators
than - inclusive upper limit of acceptable values
public java.lang.String toString()
toString in class PartialOrderAcceptLessEqual<E extends java.lang.Comparable<? super E>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||