Package org.eclipse.collections.impl
Class SynchronizedRichIterable<T>
- java.lang.Object
-
- org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable<T>
-
- org.eclipse.collections.impl.SynchronizedRichIterable<T>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<T>
,InternalIterable<T>
,RichIterable<T>
public class SynchronizedRichIterable<T> extends AbstractSynchronizedRichIterable<T> implements java.io.Serializable
A synchronized view of a RichIterable.- Since:
- 5.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SynchronizedRichIterable.SynchronizedRichIterableSerializationProxy<T>
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable
delegate, lock
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SynchronizedRichIterable(RichIterable<T> iterable)
protected
SynchronizedRichIterable(RichIterable<T> iterable, java.lang.Object newLock)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> SynchronizedRichIterable<E>
of(RichIterable<E> iterable)
This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.static <E> SynchronizedRichIterable<E>
of(RichIterable<E> iterable, java.lang.Object lock)
This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.protected java.lang.Object
writeReplace()
-
Methods inherited from class org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collect, collectBoolean, collectBoolean, collectByte, collectByte, collectChar, collectChar, collectDouble, collectDouble, collectFloat, collectFloat, collectIf, collectIf, collectInt, collectInt, collectLong, collectLong, collectShort, collectShort, collectWith, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsNone, containsNoneIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, equals, flatCollect, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, forEachWith, forEachWithIndex, getDelegate, getFirst, getLast, getLock, getOnly, groupBy, groupBy, groupByEach, groupByEach, groupByUniqueKey, groupByUniqueKey, hashCode, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, iterator, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, partition, partitionWith, reject, reject, rejectWith, rejectWith, select, select, selectInstancesOf, selectWith, selectWith, size, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, tap, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableList, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toString, zip, zip, zipWithIndex, zipWithIndex
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.InternalIterable
forEach
-
Methods inherited from interface org.eclipse.collections.api.RichIterable
aggregateBy, containsBy, flatCollectWith, flatCollectWith, forEach, getAny, groupByAndCollect, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, reduce, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutableBiMap, toImmutableMap, toImmutableSortedListBy, toSortedBagBy, toSortedSetBy
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SynchronizedRichIterable
protected SynchronizedRichIterable(RichIterable<T> iterable)
-
SynchronizedRichIterable
protected SynchronizedRichIterable(RichIterable<T> iterable, java.lang.Object newLock)
-
-
Method Detail
-
of
public static <E> SynchronizedRichIterable<E> of(RichIterable<E> iterable)
This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.
-
writeReplace
protected java.lang.Object writeReplace()
-
of
public static <E> SynchronizedRichIterable<E> of(RichIterable<E> iterable, java.lang.Object lock)
This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable. Additionally, a developer specifies which lock to use with the collection.
-
-