Class SynchronizedRichIterable<T>

java.lang.Object
org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable<T>
org.eclipse.collections.impl.SynchronizedRichIterable<T>
All Implemented Interfaces:
Serializable, Iterable<T>, InternalIterable<T>, RichIterable<T>

public class SynchronizedRichIterable<T>
extends AbstractSynchronizedRichIterable<T>
implements Serializable
A synchronized view of a RichIterable.
Since:
5.0
See Also:
Serialized Form
  • Method Details

    • of

      public static <E> SynchronizedRichIterable<E> of​(RichIterable<E> iterable)
      This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.
    • of

      public static <E> SynchronizedRichIterable<E> of​(RichIterable<E> iterable, 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.