Class SynchronizedRichIterable<T>

    • Constructor Detail

      • SynchronizedRichIterable

        protected SynchronizedRichIterable​(RichIterable<T> iterable)
      • SynchronizedRichIterable

        protected SynchronizedRichIterable​(RichIterable<T> iterable,
                                           java.lang.Object newLock)
    • Method Detail

      • 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.