Package org.burningwave.core.iterable
Class IterableObjectHelperImpl
java.lang.Object
org.burningwave.core.iterable.IterableObjectHelperImpl
- All Implemented Interfaces:
Identifiable,IterableObjectHelper,Properties.Listener
public class IterableObjectHelperImpl
extends Object
implements IterableObjectHelper, Properties.Listener, Identifiable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.burningwave.core.iterable.IterableObjectHelper
IterableObjectHelper.Configuration, IterableObjectHelper.IterationConfig<I,IC, C extends IterableObjectHelper.IterationConfig<I, IC, C>>, IterableObjectHelper.ResolveConfig<T, K>, IterableObjectHelper.TerminateIteration -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Map<?, ?> map, String key, Object object) booleancontainsValue(Map<?, ?> map, String key, Object object, Map<?, ?> defaultValues) <I,IC, O, OC>
QueuedTaskExecutor.ProducerTask<OC> createIterateAndGetTask(IterableObjectHelper.IterationConfig.WithOutputOfCollection<I, IC, O, OC> config) <I,IC, K, O, OM>
QueuedTaskExecutor.ProducerTask<OM> createIterateAndGetTask(IterableObjectHelper.IterationConfig.WithOutputOfMap<I, IC, K, O, OM> config) <I,IC> QueuedTaskExecutor.Task createIterateTask(IterableObjectHelper.IterationConfig<I, IC, ?> config) <V> voiddeepClear(Collection<V> map) <V,E extends Throwable>
voiddeepClear(Collection<V> map, ThrowingConsumer<V, E> itemDestroyer) <K,V> void <K,V, E extends Throwable>
voiddeepClear(Map<K, V> map, ThrowingBiConsumer<K, V, E> itemDestroyer) getAllPlaceHolders(Map<?, ?> map) getAllPlaceHolders(Map<?, ?> map, String propertyName) getAllPlaceHolders(Map<?, ?> map, Predicate<String> propertyFilter) <T> TgetRandom(Collection<T> coll) long<I,IC> void iterate(IterableObjectHelper.IterationConfig<I, IC, ?> configuration) <I,IC, O, OC>
OCiterateAndGet(IterableObjectHelper.IterationConfig.WithOutputOfCollection<I, IC, O, OC> configuration) <I,IC, K, O, OM>
OMiterateAndGet(IterableObjectHelper.IterationConfig.WithOutputOfMap<I, IC, K, O, OM> configuration) <T> Collection<T> merge(Supplier<Collection<T>> baseCollectionSupplier, Supplier<Collection<T>> additionalCollectionSupplier, Supplier<Collection<T>> defaultCollectionSupplier) <K,V> void processChangeNotification(Properties config, Properties.Event event, K key, V newValue, V previousValue) <K,V> void <K> String<K> Map<K, Collection<String>> <K,T> T <T> T<K,V> Map <K, V> <T> Collection<T> <T> Stream<T> retrieveStream(Object object) toPrettyString(Map<?, ?> map, String valuesSeparator, int marginTabCount) <K,V> String <K,V> String toString(Map<K, V> map, Function<K, String> keyTransformer, Function<V, String> valueTransformer, int marginTabCount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationIdMethods inherited from interface org.burningwave.core.iterable.IterableObjectHelper
isIterationTerminatedNotification, terminateCurrentThreadIteration, terminateIterationMethods inherited from interface org.burningwave.core.iterable.Properties.Listener
checkAndListenTo, checkAndUnregister, listenTo, unregister
-
Method Details
-
getDefaultValuesSeparator
- Specified by:
getDefaultValuesSeparatorin interfaceIterableObjectHelper
-
getDefaultMinimumCollectionSizeForParallelIterationPredicate
- Specified by:
getDefaultMinimumCollectionSizeForParallelIterationPredicatein interfaceIterableObjectHelper
-
processChangeNotification
public <K,V> void processChangeNotification(Properties config, Properties.Event event, K key, V newValue, V previousValue) - Specified by:
processChangeNotificationin interfaceIterableObjectHelper- Specified by:
processChangeNotificationin interfaceProperties.Listener
-
deepClear
- Specified by:
deepClearin interfaceIterableObjectHelper
-
deepClear
public <K,V, void deepClearE extends Throwable> (Map<K, V> map, ThrowingBiConsumer<K, throws EV, E> itemDestroyer) - Specified by:
deepClearin interfaceIterableObjectHelper- Throws:
E
-
deepClear
- Specified by:
deepClearin interfaceIterableObjectHelper
-
deepClear
public <V,E extends Throwable> void deepClear(Collection<V> map, ThrowingConsumer<V, E> itemDestroyer) throws E- Specified by:
deepClearin interfaceIterableObjectHelper- Throws:
E
-
merge
public <T> Collection<T> merge(Supplier<Collection<T>> baseCollectionSupplier, Supplier<Collection<T>> additionalCollectionSupplier, Supplier<Collection<T>> defaultCollectionSupplier) - Specified by:
mergein interfaceIterableObjectHelper
-
getRandom
- Specified by:
getRandomin interfaceIterableObjectHelper
-
retrieveStream
- Specified by:
retrieveStreamin interfaceIterableObjectHelper
-
getSize
- Specified by:
getSizein interfaceIterableObjectHelper
-
resolveValue
- Specified by:
resolveValuein interfaceIterableObjectHelper
-
resolveValue
- Specified by:
resolveValuein interfaceIterableObjectHelper
-
resolveStringValue
- Specified by:
resolveStringValuein interfaceIterableObjectHelper
-
resolveStringValue
- Specified by:
resolveStringValuein interfaceIterableObjectHelper
-
resolveValues
- Specified by:
resolveValuesin interfaceIterableObjectHelper
-
resolveValues
- Specified by:
resolveValuesin interfaceIterableObjectHelper
-
resolveStringValues
public Collection<String> resolveStringValues(IterableObjectHelper.ResolveConfig.ForNamedKey config) - Specified by:
resolveStringValuesin interfaceIterableObjectHelper
-
resolveStringValues
public <K> Map<K,Collection<String>> resolveStringValues(IterableObjectHelper.ResolveConfig.ForAllKeysThat<K> config) - Specified by:
resolveStringValuesin interfaceIterableObjectHelper
-
getAllPlaceHolders
- Specified by:
getAllPlaceHoldersin interfaceIterableObjectHelper
-
getAllPlaceHolders
- Specified by:
getAllPlaceHoldersin interfaceIterableObjectHelper
-
getAllPlaceHolders
- Specified by:
getAllPlaceHoldersin interfaceIterableObjectHelper
-
containsValue
- Specified by:
containsValuein interfaceIterableObjectHelper
-
refresh
- Specified by:
refreshin interfaceIterableObjectHelper
-
containsValue
- Specified by:
containsValuein interfaceIterableObjectHelper
-
createIterateAndGetTask
public <I,IC, QueuedTaskExecutor.ProducerTask<OC> createIterateAndGetTaskO, OC> (IterableObjectHelper.IterationConfig.WithOutputOfCollection<I, IC, O, OC> config) - Specified by:
createIterateAndGetTaskin interfaceIterableObjectHelper
-
createIterateAndGetTask
public <I,IC, QueuedTaskExecutor.ProducerTask<OM> createIterateAndGetTaskK, O, OM> (IterableObjectHelper.IterationConfig.WithOutputOfMap<I, IC, K, O, OM> config) - Specified by:
createIterateAndGetTaskin interfaceIterableObjectHelper
-
createIterateTask
public <I,IC> QueuedTaskExecutor.Task createIterateTask(IterableObjectHelper.IterationConfig<I, IC, ?> config) - Specified by:
createIterateTaskin interfaceIterableObjectHelper
-
iterateAndGet
public <I,IC, OM iterateAndGetK, O, OM> (IterableObjectHelper.IterationConfig.WithOutputOfMap<I, IC, K, O, OM> configuration) - Specified by:
iterateAndGetin interfaceIterableObjectHelper
-
iterateAndGet
public <I,IC, OC iterateAndGetO, OC> (IterableObjectHelper.IterationConfig.WithOutputOfCollection<I, IC, O, OC> configuration) - Specified by:
iterateAndGetin interfaceIterableObjectHelper
-
iterate
- Specified by:
iteratein interfaceIterableObjectHelper
-
toPrettyString
- Specified by:
toPrettyStringin interfaceIterableObjectHelper
-
toString
- Specified by:
toStringin interfaceIterableObjectHelper
-
toString
-