| Package | Description |
|---|---|
| net.pterodactylus.util.collection | |
| net.pterodactylus.util.collection.filter |
| Modifier and Type | Method and Description |
|---|---|
IterableWrapper<T> |
IterableWrapper.filter(Filter<? super T> filter)
Creates a new wrapper around the iterable that will have its elements
filtered by the given filter.
|
IteratorWrapper<T> |
IteratorWrapper.filter(Filter<? super T> filter)
Creates a new iterator wrapper that will apply the given filter to all
values returned by this wrapper’s iterator.
|
Container<T> |
Container.filter(Filter<T> filter)
Filters the elements of this container through the given filter.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MatchAllFilter<T>
Filter implementation that matches all objects. |
class |
NotNullFilter
Filter implementation that removes all null objects from a
collection. |
| Modifier and Type | Method and Description |
|---|---|
static <E> Filter<E> |
Filters.reverseFilter(Filter<E> filter)
Returns a filter that reverses the given filter.
|
| Modifier and Type | Method and Description |
|---|---|
static <K> Collection<K> |
Filters.filteredCollection(Collection<K> collection,
Filter<? super K> collectionFilter)
Returns a collection that contains only the elements from the given
collection that match the given filter.
|
static <E> Iterator<E> |
Filters.filteredIterator(Iterator<E> iterator,
Filter<? super E> iteratorFilter)
Returns an iterator that contains only the elements from the given
iterator that match the given filter.
|
static <E> List<E> |
Filters.filteredList(List<E> list,
Filter<? super E> listFilter)
Returns a list that contains only the elements from the given list that
match the given filter.
|
static <K,V> Map<K,V> |
Filters.filteredMap(Map<K,V> map,
Filter<Map.Entry<K,V>> mapFilter)
Returns a map that contains only the elements from the given map that
match the given filter.
|
static <E> Set<E> |
Filters.filteredSet(Set<E> set,
Filter<? super E> setFilter)
Returns a set that contains only the elements from the given set that
match the given filter.
|
static <E> Filter<E> |
Filters.reverseFilter(Filter<E> filter)
Returns a filter that reverses the given filter.
|
| Constructor and Description |
|---|
FilteredIterable(Iterable<T> iterable,
Filter<? super T> filter)
Creates a new iterable filter.
|
FilteredIterator(Iterator<T> iterator,
Filter<? super T> filter)
Creates a new filtered iterator.
|
Copyright © 2026. All rights reserved.