|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.filters.AcceptUniqueSequence<V>
public class AcceptUniqueSequence<V>
A Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using the provided definition of equality.
| Constructor Summary | |
|---|---|
AcceptUniqueSequence()
Construct a new Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using regular object equality. |
|
AcceptUniqueSequence(Equality<? super V> eq)
Construct a new Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using the provided definition of equality. |
|
| Method Summary | ||
|---|---|---|
boolean |
accept(V next)
Returns true if the Filter accepts the parameter and false otherwise |
|
static
|
get()
Returns a Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using regular object equality. |
|
static
|
get(Equality<? super V> eq)
Returns a Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using the provided definition of equality. |
|
java.lang.String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AcceptUniqueSequence()
Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using regular object equality.
public AcceptUniqueSequence(Equality<? super V> eq)
Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using the provided definition of equality.
| Method Detail |
|---|
public boolean accept(V next)
Filtertrue if the Filter accepts the parameter and false otherwise
accept in interface Filter<V>next - value to test
true if the filter accepts test; false otherwisepublic java.lang.String toString()
toString in class java.lang.Objectpublic static <V> AcceptUniqueSequence<V> get()
Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using regular object equality.
public static <V> AcceptUniqueSequence<V> get(Equality<? super V> eq)
Filter which returns true if and only if the previously tested value is not equal to the value
being tested, using the provided definition of equality.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||