|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Filter | |
|---|---|
| org.jjoost.collections.iters | |
| org.jjoost.util | |
| org.jjoost.util.concurrent | |
| org.jjoost.util.filters | |
| Uses of Filter in org.jjoost.collections.iters |
|---|
| Methods in org.jjoost.collections.iters with parameters of type Filter | ||
|---|---|---|
static
|
FilteredClosableIterator.get(ClosableIterator<? extends E> base,
Filter<? super E> filter)
|
|
| Constructors in org.jjoost.collections.iters with parameters of type Filter | |
|---|---|
FilteredClosableIterator(ClosableIterator<? extends E> base,
Filter<? super E> filter)
|
|
FilteredIterable(java.lang.Iterable<? extends E> wrapped,
Filter<? super E> filter)
|
|
FilteredIterator(java.util.Iterator<? extends E> base,
Filter<? super E> filter)
|
|
| Uses of Filter in org.jjoost.util |
|---|
| Methods in org.jjoost.util with type parameters of type Filter | ||
|---|---|---|
static
|
Filters.and(F... filters)
Returns the conjunction (i.e. |
|
static
|
Filters.and(F a,
F b)
Returns the conjunction (i.e. |
|
static
|
Filters.and(java.lang.Iterable<? extends F> filters)
Returns the conjunction (i.e. |
|
static
|
Filters.not(F filter)
Returns the negation of the supplied filter implementing both Filter and PartialOrder. |
|
static
|
Filters.or(F... filters)
Returns the disjunction (i.e. |
|
static
|
Filters.or(F a,
F b)
Returns the disjunction (i.e. |
|
static
|
Filters.or(java.lang.Iterable<? extends F> filters)
Returns the disjunction (i.e. |
|
| Methods in org.jjoost.util that return Filter | ||
|---|---|---|
static
|
Filters.and(Filter<? super E>... filters)
Returns the conjunction (i.e. |
|
static
|
Filters.and(Filter<? super E> a,
Filter<? super E> b)
Returns the conjunction (i.e. |
|
static
|
Filters.and(java.lang.Iterable<Filter<? super E>> filters)
Returns the conjunction (i.e. |
|
static
|
Filters.isMemberOf(AnySet<E> set)
Returns a filter accepting values that are members of the provided set |
|
static
|
Filters.isMemberOf(java.lang.Iterable<E> set)
Returns a filter accepting values that occur in the provided Iterable. |
|
static
|
Filters.isNull()
Returns a filter accepting only values that are null |
|
static Filter<java.lang.String> |
Filters.matches(java.util.regex.Pattern pattern)
Returns a filter accepting strings that match the provided pattern |
|
static Filter<java.lang.String> |
Filters.matches(java.lang.String pattern)
Returns a filter accepting strings that match the supplied pattern |
|
static
|
Filters.not(Filter<E> filter)
Returns the negation of the supplied filter |
|
static
|
Filters.notNull()
Returns a filter accepting everything that is not null * |
|
static
|
Filters.or(Filter<? super E>... filters)
Returns the disjunction (i.e. |
|
static
|
Filters.or(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
static
|
Filters.or(java.lang.Iterable<? extends Filter<? super E>> filters)
Returns the disjunction (i.e. |
|
static
|
Filters.unique()
Returns a Filter which returns true if and only if it has never seen the value being tested before, using regular
object equality. |
|
static
|
Filters.unique(Equality<? super E> eq)
Returns a Filter which returns true if and only if it has never seen the value being tested before, using the provided
equality. |
|
static
|
Filters.unique(Set<E> set)
Returns a Filter which returns true if and only if it has never seen the value being tested before, using the provided
set to maintain all visited values, and hence the set's definition of equality. |
|
static
|
Filters.uniqueSeq()
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
|
Filters.uniqueSeq(Equality<? super E> 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. |
|
| Methods in org.jjoost.util with parameters of type Filter | ||
|---|---|---|
static
|
Filters.and(F... filters)
Returns the conjunction (i.e. |
|
static
|
Filters.and(Filter<? super E>... filters)
Returns the conjunction (i.e. |
|
static
|
Filters.and(Filter<? super E> a,
Filter<? super E> b)
Returns the conjunction (i.e. |
|
static
|
Filters.and(Filter<? super E> a,
Filter<? super E> b)
Returns the conjunction (i.e. |
|
static
|
Filters.apply(ClosableIterator<E> iter,
Filter<? super E> filter)
Returns a ClosableIterator wrapping the one provided and lazily filtering its contents by the provided filter |
|
static
|
Filters.apply(java.util.Collection<E> coll,
Filter<? super E> filter)
Returns a new ArrayList representing the items from the provided Collection that when passed to the provided filter's
accept() method, returned true. |
|
static
|
Filters.apply(Filter<? super E> filter,
ClosableIterator<E> iter)
Returns an ClosableIterator wrapping the one provided and lazily filtering its contents by the provided filter. |
|
static
|
Filters.apply(Filter<? super E> filter,
java.util.Collection<E> coll)
Returns a new ArrayList representing the items from the provided Collection that when passed to the provided filter's
accept() method, returned true. |
|
static
|
Filters.apply(Filter<? super E> filter,
java.lang.Iterable<E> iter)
Returns an Iterable whose iterator() method will yield a lazily filtered Iterator wrapping the
one returned by the Iterable provided to this method, filtered by the provided filter. |
|
static
|
Filters.apply(Filter<? super E> filter,
java.util.Iterator<E> iter)
Returns an Iterator wrapping the one provided and lazily filtering its contents by the provided filter. |
|
static
|
Filters.apply(java.lang.Iterable<E> iter,
Filter<? super E> filter)
Returns an Iterable whose iterator() method will yield a lazily filtered Iterator wrapping the
one returned by the Iterable provided to this method, filtered by the provided filter. |
|
static
|
Filters.apply(java.util.Iterator<E> iter,
Filter<? super E> filter)
Returns an Iterator wrapping the one provided and lazily filtering its contents by the provided filter. |
|
static
|
Filters.mapped(Function<X,Y> mapping,
Filter<Y> filter)
Returns a filter that applies the provided function to its input before delegating to the provided filter |
|
static
|
Filters.not(Filter<E> filter)
Returns the negation of the supplied filter |
|
static
|
Filters.or(F... filters)
Returns the disjunction (i.e. |
|
static
|
Filters.or(Filter<? super E>... filters)
Returns the disjunction (i.e. |
|
static
|
Filters.or(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
static
|
Filters.or(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
static
|
Filters.remove(Filter<? super V> removeMatches,
int removeAtMost,
java.util.Iterator<V> iter)
Visits the elements in the provided Iterator, executing remove() on any that match the provided
filter (i.e. |
|
static
|
Filters.removeAndReturn(Filter<? super V> removeMatches,
int removeAtMost,
java.util.Iterator<V> iter)
Returns a new Iterator which visits the first removeAtMost items from the provided Iterator
matching the provided Filter, removing them from the provided Filter as they are visited. |
|
static
|
Filters.removeAndReturnFirst(Filter<? super V> removeMatches,
int removeAtMost,
java.util.Iterator<V> iter)
Visits the elements in the provided Iterator, executing remove() on any that match the provided
filter (i.e. |
|
| Method parameters in org.jjoost.util with type arguments of type Filter | ||
|---|---|---|
static
|
Filters.and(java.lang.Iterable<Filter<? super E>> filters)
Returns the conjunction (i.e. |
|
static
|
Filters.or(java.lang.Iterable<? extends Filter<? super E>> filters)
Returns the disjunction (i.e. |
|
| Uses of Filter in org.jjoost.util.concurrent |
|---|
| Methods in org.jjoost.util.concurrent with parameters of type Filter | |
|---|---|
void |
ThreadQueue.wake(Filter<Q> wake)
wake up all links after this link on which application of the provided filter's accept() method returns true |
| Uses of Filter in org.jjoost.util.filters |
|---|
| Classes in org.jjoost.util.filters with type parameters of type Filter | |
|---|---|
class |
BothFilterAnd<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the conjunction (i.e. |
class |
BothFilterMultiAnd<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the conjunction (i.e. |
class |
BothFilterMultiOr<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the disjunction (i.e. |
class |
BothFilterNot<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter negating the supplied filter implementing both Filter and PartialOrder |
class |
BothFilterOr<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the disjunction (i.e. |
| Subinterfaces of Filter in org.jjoost.util.filters | |
|---|---|
interface |
BothFilter<E>
A convenience interface for classes implementing both Filter and FilterPartialOrder |
| Classes in org.jjoost.util.filters that implement Filter | |
|---|---|
class |
AcceptAll<E>
A filter that accepts everything (i.e. |
class |
AcceptBetween<E extends Comparable<? super E>>
A filter that accepts everything between the provided lower and upper bounds, as determined by the Comparator provided to its methods. |
class |
AcceptEqual<E>
A filter accepting only values equal to the one provided, using the provided definition of equality. |
class |
AcceptGreater<E extends Comparable<? super E>>
A partial order filter that accepts everything greater than the provided value as determined by the Comparator
provided to its methods by utilising classes. |
class |
AcceptGreaterEqual<E extends Comparable<? super E>>
A partial order filter that accepts everything greater than or equal to the provided value, as determined by the Comparator
provided to its methods by utilising classes. |
class |
AcceptIfMember<E>
A filter accepting values that are members of the provided set |
class |
AcceptIfNonEmptyString<E>
A Filter accepting any Object that is not null, and whose toString() method returns something that is neither null, nor of zero length |
class |
AcceptIfNotNull<E>
A filter accepting everything except null |
class |
AcceptIfNull<E>
A filter accepting only values that are null |
class |
AcceptLess<E extends Comparable<? super E>>
A partial order filter that accepts everything less than the provided value as determined by the Comparator
provided to its methods by utilising classes. |
class |
AcceptLessEqual<E extends 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. |
class |
AcceptNone<E>
A filter that accepts nothing (i.e. |
class |
AcceptUnique<V>
A Filter which returns true if and only if it has never seen the value being tested before,
using the provided set to maintain the previously visited set of values. |
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. |
class |
BothFilterAnd<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the conjunction (i.e. |
class |
BothFilterMultiAnd<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the conjunction (i.e. |
class |
BothFilterMultiOr<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the disjunction (i.e. |
class |
BothFilterNot<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter negating the supplied filter implementing both Filter and PartialOrder |
class |
BothFilterOr<E,F extends Filter<? super E> & FilterPartialOrder<E>>
A filter representing the disjunction (i.e. |
class |
FilterAnd<E>
A filter representing the conjunction (i.e. |
class |
FilterMultiAnd<E>
A filter representing the conjunction (i.e. |
class |
FilterMultiOr<E>
A filter representing the conjunction (i.e. |
class |
FilterNot<E>
A that negates/inverts the result of the supplied filter |
class |
FilterOr<E>
A filter representing the disjunction (i.e. |
class |
FilterPattern
A filter accepting strings that match the provided pattern |
class |
MappedFilter<X,Y>
A filter that applies the provided function to its input before delegating to the provided filter |
| Methods in org.jjoost.util.filters with type parameters of type Filter | ||
|---|---|---|
static
|
BothFilterMultiOr.get(F... filters)
Returns the disjunction (i.e. |
|
static
|
BothFilterMultiAnd.get(F... filters)
Returns the conjunction (i.e. |
|
static
|
BothFilterNot.get(F negate)
Returns the negation of the supplied filter implementing |
|
static
|
BothFilterOr.get(F a,
F b)
Returns the disjunction (i.e. |
|
static
|
BothFilterAnd.get(F a,
F b)
Returns the conjunction (i.e. |
|
static
|
BothFilterMultiOr.get(java.lang.Iterable<? extends F> filters)
Returns the disjunction (i.e. |
|
static
|
BothFilterMultiAnd.get(java.lang.Iterable<? extends F> filters)
Returns the conjunction (i.e. |
|
| Methods in org.jjoost.util.filters with parameters of type Filter | ||
|---|---|---|
static
|
BothFilterMultiOr.get(F... filters)
Returns the disjunction (i.e. |
|
static
|
BothFilterMultiAnd.get(F... filters)
Returns the conjunction (i.e. |
|
static
|
FilterMultiOr.get(Filter<? super E>... filters)
Returns the conjunction (i.e. |
|
static
|
FilterMultiAnd.get(Filter<? super E>... filters)
Returns the conjunction (i.e. |
|
static
|
FilterOr.get(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
static
|
FilterOr.get(Filter<? super E> a,
Filter<? super E> b)
Returns the disjunction (i.e. |
|
static
|
FilterAnd.get(Filter<? super E> a,
Filter<? super E> b)
Returns the conjunction (i.e. |
|
static
|
FilterAnd.get(Filter<? super E> a,
Filter<? super E> b)
Returns the conjunction (i.e. |
|
static
|
FilterNot.get(Filter<E> negate)
Returns the negation of the supplied filter |
|
static
|
MappedFilter.get(Function<X,Y> mapping,
Filter<Y> filter)
Returns a filter that applies the provided function to its input before delegating to the provided filter |
|
| Method parameters in org.jjoost.util.filters with type arguments of type Filter | ||
|---|---|---|
static
|
FilterMultiOr.get(java.lang.Iterable<? extends Filter<? super E>> filters)
Returns the conjunction (i.e. |
|
static
|
FilterMultiAnd.get(java.lang.Iterable<? extends Filter<? super E>> filters)
Returns the conjunction (i.e. |
|
| Constructors in org.jjoost.util.filters with parameters of type Filter | |
|---|---|
BothFilterMultiAnd(F... filters)
Construct a new filter representing the conjunction (i.e. |
|
BothFilterMultiOr(F... filters)
Construct a new filter representing the disjunction (i.e. |
|
FilterAnd(Filter<? super E> a,
Filter<? super E> b)
Construct a filter representing the conjunction (i.e. |
|
FilterAnd(Filter<? super E> a,
Filter<? super E> b)
Construct a filter representing the conjunction (i.e. |
|
FilterMultiAnd(Filter<? super E>... filters)
Constructs a new filter representing the conjunction (i.e. |
|
FilterMultiOr(Filter<? super E>... filters)
Constructs a new filter representing the conjunction (i.e. |
|
FilterNot(Filter<E> negate)
Construct a new filter which negates the results of the filter provided |
|
FilterOr(Filter<? super E> a,
Filter<? super E> b)
Construct a filter representing the disjunction (i.e. |
|
FilterOr(Filter<? super E> a,
Filter<? super E> b)
Construct a filter representing the disjunction (i.e. |
|
MappedFilter(Function<X,Y> mapping,
Filter<Y> filter)
Constructs a filter that applies the provided function to its input before delegating to the provided filter |
|
| Constructor parameters in org.jjoost.util.filters with type arguments of type Filter | |
|---|---|
FilterMultiAnd(java.lang.Iterable<? extends Filter<? super E>> filters)
Constructs a new filter representing the conjunction (i.e. |
|
FilterMultiOr(java.lang.Iterable<? extends Filter<? super E>> filters)
Constructs a new filter representing the conjunction (i.e. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||