| Package | Description |
|---|---|
| net.pterodactylus.util.collection | |
| net.pterodactylus.util.collection.mapper |
| Modifier and Type | Method and Description |
|---|---|
<O> IterableWrapper<O> |
IterableWrapper.map(Mapper<? super T,? extends O> mapper)
Creates a new wrapper around the iterable that will have its elements
mapped by the given mapper.
|
<O> IteratorWrapper<O> |
IteratorWrapper.map(Mapper<? super T,? extends O> mapper)
Creates a new iterator wrapper that will apply the given mapper to all
values returned by this wrapper’s iterator.
|
<O> Container<O> |
Container.map(Mapper<T,O> mapper)
Maps all elements in this container using the given mapper and returns a
container containing the mapped elements.
|
| Modifier and Type | Method and Description |
|---|---|
static <I,O> List<O> |
Mappers.mappedList(List<I> inputList,
Mapper<I,O> mapper)
Maps all objects in the given list and returns a list that contains the
mapped objects in the same order as the input objects in the original
list.
|
static <I,O> Set<O> |
Mappers.mappedSet(Set<I> inputSet,
Mapper<I,O> mapper)
Maps all objects in the given list and returns a list that contains the
mapped objects.
|
| Constructor and Description |
|---|
MappedIterable(Iterable<I> inputIterable,
Mapper<? super I,? extends O> mapper)
Creates a new iterable mapper.
|
MappedIterator(Iterator<I> inputIterator,
Mapper<? super I,? extends O> mapper)
Creates a new iterator mapper.
|
Copyright © 2026. All rights reserved.