final class TypesImplMap
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapEImpl(C target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapEImpl(C target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapEImpl(C target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an iterator into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapEImpl(C target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapImpl(C target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapImpl(C target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapImpl(C target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an iterator into a collection.
|
(package private) static <C extends java.util.function.Consumer<? super T>,T,S> |
mapImpl(C target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an iterator to a consumer.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapImpl(C target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a collection.
|
(package private) static <C extends java.util.function.Consumer<? super T>,T,S> |
mapImpl(C target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Forward the mapped elements of an iterator to a consumer.
|
(package private) static <MT extends java.util.Map<? super KT,? super VT>,KT,VT,KS,VS> |
mapImpl(MT target,
java.util.Map<KS,VS> source,
java.util.function.Function<java.util.Map.Entry<KS,VS>,? extends java.util.Map.Entry<KT,VT>> typeConverter)
Map one map into another, while allowing to discard elements on the way.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMEImpl(M target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an enumeration to a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMEImpl(M target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration to a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMEImpl(M target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an iterator to a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMEImpl(M target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMImpl(M target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMImpl(M target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration into a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMImpl(M target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an iterator into a map.
|
(package private) static <M extends java.util.Map<? super T,? super S>,T,S> |
mapMImpl(M target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapREImpl(M target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an enumeration to a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapREImpl(M target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration to a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapREImpl(M target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter)
Add the mapped elements of an iterator to a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapREImpl(M target,
java.util.Iterator<S> iterator,
FragileTypeConverter<T,? super S> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapRImpl(M target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapRImpl(M target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an enumeration into a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapRImpl(M target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter)
Add the mapped elements of an iterator into a map.
|
(package private) static <M extends java.util.Map<? super S,? super T>,T,S> |
mapRImpl(M target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,T> typeConverter,
T deleteMark)
Add the mapped elements of an iterator into a map.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapXEImpl(C target,
java.util.Enumeration<S> enumeration,
FragileTypeConverter<? extends java.lang.Iterable<T>,? super S> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapXEImpl(C target,
java.util.Iterator<S> iterator,
FragileTypeConverter<? extends java.lang.Iterable<T>,? super S> typeConverter)
Add the mapped elements of an iterator into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapXImpl(C target,
java.util.Enumeration<S> enumeration,
java.util.function.Function<? super S,? extends java.lang.Iterable<T>> typeConverter)
Add the mapped elements of an enumeration into a collection.
|
(package private) static <C extends java.util.Collection<? super T>,T,S> |
mapXImpl(C target,
java.util.Iterator<S> iterator,
java.util.function.Function<? super S,? extends java.lang.Iterable<T>> typeConverter)
Add the mapped elements of an iterator into a collection.
|
(package private) static <MT extends java.util.Map<? super KT,? super VT>,KT,VT,KS,VS> |
mapXImpl(MT target,
java.util.Map<KS,VS> source,
java.util.function.Function<java.util.Map.Entry<? super KS,? super VS>,? extends java.lang.Iterable<? extends java.util.Map.Entry<? extends KT,? extends VT>>> typeConverter)
Map one map into another, allowing to discard or add elements on the way.
|
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <C extends java.util.function.Consumer<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the consumer.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- consumer where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection, using the converted values as keys pointing to the incoming values.
M
- map typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapRImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection, using the incoming values as keys pointing to the converted values.
M
- map typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection, using the converted values as keys pointing to the incoming values.
M
- map typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapRImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter)
This will add all mapped elements to the target collection, using the converted values as keys pointing to the incoming values.
M
- map typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <MT extends java.util.Map<? super KT,? super VT>,KT,VT,KS,VS> MT mapImpl(@NotNull MT target, @NotNull java.util.Map<KS,VS> source, @NotNull java.util.function.Function<java.util.Map.Entry<KS,VS>,? extends java.util.Map.Entry<KT,VT>> typeConverter)
An element is discarded if the type converter returns null
.
MT
- target map typeKT
- target map key typeVT
- target map value typeKS
- source map key typeVS
- source map value typetarget
- target mapsource
- source maptypeConverter
- type converter converting map entries@NotNull static <MT extends java.util.Map<? super KT,? super VT>,KT,VT,KS,VS> MT mapXImpl(@NotNull MT target, @NotNull java.util.Map<KS,VS> source, @NotNull java.util.function.Function<java.util.Map.Entry<? super KS,? super VS>,? extends java.lang.Iterable<? extends java.util.Map.Entry<? extends KT,? extends VT>>> typeConverter)
MT
- target map typeKT
- target map key typeVT
- target map value typeKS
- source map key typeVS
- source map value typetarget
- target mapsource
- source maptypeConverter
- type converter converting map entries@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapXImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,? extends java.lang.Iterable<T>> typeConverter)
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapXImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,? extends java.lang.Iterable<T>> typeConverter)
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elements@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <C extends java.util.function.Consumer<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
This method allows to discard elements during the mapping.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- consumer to which each element is mappediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
The converted values will become keys, pointing to the associated incoming values.
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapRImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
The incoming values will become keys, pointing to the associated converted values.
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
The converted values will become keys, pointing to the associated incoming values.
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapRImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull java.util.function.Function<? super S,T> typeConverter, @Nullable T deleteMark)
The incoming values will become keys, pointing to the associated converted values.
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapEImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMEImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
The converted values will become keys, pointing to the associated incoming values.
This will add all mapped elements to the target map.
See Types.mapM(java.util.Map, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapREImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
The incoming values will become keys, pointing to the associated converted values.
This will add all mapped elements to the target map.
See Types.mapR(java.util.Map, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapEImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMEImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
The converted values will become keys, pointing to the associated incoming values.
This will add all mapped elements to the target map.
See Types.mapM(java.util.Map, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapREImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter) throws TypeConverterException
The incoming values will become keys, pointing to the associated converted values.
This will add all mapped elements to the target map.
See Types.mapM(java.util.Map, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapXEImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<? extends java.lang.Iterable<T>,? super S> typeConverter) throws TypeConverterException
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapXEImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<? extends java.lang.Iterable<T>,? super S> typeConverter) throws TypeConverterException
This will add all mapped elements to the target collection.
See Types.map(java.util.Collection, Iterable, Function, Object)
for a method
which allows to discard elements.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
See Types.map(java.util.Collection, Iterable, Function)
for an easy to adapt example.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsTypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapEImpl(@NotNull C target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMEImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
The converted values will become keys, pointing to the associated incoming values.
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapREImpl(@NotNull M target, @NotNull java.util.Iterator<S> iterator, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
The incoming values will become keys, pointing to the associated converted values.
This method allows to discard elements during the mapping.
Note that iterator is not allowed to be an iterator of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addediterator
- iterator providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <C extends java.util.Collection<? super T>,T,S> C mapEImpl(@NotNull C target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
C
- collection typeT
- target (mapped) typeS
- source typetarget
- collection where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super T,? super S>,T,S> M mapMEImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
The converted values will become keys, pointing to the associated incoming values.
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()
@NotNull static <M extends java.util.Map<? super S,? super T>,T,S> M mapREImpl(@NotNull M target, @NotNull java.util.Enumeration<S> enumeration, @NotNull FragileTypeConverter<T,? super S> typeConverter, @Nullable T deleteMark) throws TypeConverterException
The incoming values will become keys, pointing to the associated converted values.
This method allows to discard elements during the mapping.
Note that enumeration is not allowed to be an enumeration of the target collection, otherwise you'll
get either a ConcurrentModificationException
, or another exception
because you are running into an endless loop.
M
- map typeT
- target (mapped) typeS
- source typetarget
- map where the mapped elements are addedenumeration
- enumeration providing the source elementstypeConverter
- type converter converting the source elements into the mapped elementsdeleteMark
- special return value of the type converter which means not to copy
the result into the target collection. It is compared with reference
equality. Often null
is a useful choice, only in cases
where the target collection may contain null
values and the
type converter may produce them another mark is necessary.TypeConverterException
- if the conversion fails with an exception,
the thrown exception will provide this original exception
as TypeConverterException.getException()