Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl

public Class SynchronizedRichIterable<T>

extends AbstractSynchronizedRichIterable<T>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.Externalizable, .IOException, .ObjectInput, .ObjectOutput, .Serializable, org.eclipse.collections.api.RichIterable, org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable

A synchronized view of a RichIterable.
Since
5.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable:
delegatelock

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public static <E> SynchronizedRichIterable<E>
of(RichIterable<E> iterable)

This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.

public static <E> SynchronizedRichIterable<E>
of(RichIterable<E> iterable, Object lock)

This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.

protected Object
Inherited from org.eclipse.collections.impl.collection.AbstractSynchronizedRichIterable:
aggregateByaggregateInPlaceByallSatisfyallSatisfyWithanySatisfyanySatisfyWithappendStringappendStringappendStringasLazychunkcollectcollectcollectBooleancollectBooleancollectBytecollectBytecollectCharcollectCharcollectDoublecollectDoublecollectFloatcollectFloatcollectIfcollectIfcollectIntcollectIntcollectLongcollectLongcollectShortcollectShortcollectWithcollectWithcontainscontainsAllcontainsAllArgumentscontainsAllIterablecontainsAnycontainsAnyIterablecontainsNonecontainsNoneIterablecountcountBycountBycountByEachcountByEachcountByWithcountByWithcountWithdetectdetectIfNonedetectOptionaldetectWithdetectWithIfNonedetectWithOptionaleachequalsflatCollectflatCollectflatCollectBooleanflatCollectByteflatCollectCharflatCollectDoubleflatCollectFloatflatCollectIntflatCollectLongflatCollectShortforEachWithforEachWithIndexgetDelegategetFirstgetLastgetLockgetOnlygroupBygroupBygroupByEachgroupByEachgroupByUniqueKeygroupByUniqueKeyhashCodeinjectIntoinjectIntoinjectIntoinjectIntoinjectIntointoisEmptyiteratormakeStringmakeStringmakeStringmakeStringmaxmaxmaxBymaxByOptionalmaxOptionalmaxOptionalminminminByminByOptionalminOptionalminOptionalnoneSatisfynoneSatisfyWithnotEmptypartitionpartitionWithreduceByrejectrejectrejectWithrejectWithselectselectselectInstancesOfselectWithselectWithsizesumByDoublesumByFloatsumByIntsumByLongsumOfDoublesumOfFloatsumOfIntsumOfLongtaptoArraytoArraytoBagtoBiMaptoImmutableBagtoImmutableListtoImmutableSettoImmutableSortedBagtoImmutableSortedBagtoImmutableSortedBagBytoImmutableSortedListtoImmutableSortedListtoImmutableSortedSettoImmutableSortedSettoImmutableSortedSetBytoListtoMaptoMaptoSettoSortedBagtoSortedBagtoSortedListtoSortedListtoSortedListBytoSortedMaptoSortedMaptoSortedMapBytoSortedSettoSortedSettoStringzipzipzipWithIndexzipWithIndex

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SynchronizedRichIterableback to summary
protected SynchronizedRichIterable(RichIterable<T> iterable)
SynchronizedRichIterableback to summary
protected SynchronizedRichIterable(RichIterable<T> iterable, Object newLock)

Method Detail

ofback to summary
public static <E> SynchronizedRichIterable<E> of(RichIterable<E> iterable)

This method will take a RichIterable and wrap it directly in a SynchronizedRichIterable.

ofback to summary
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.

writeReplaceback to summary
protected Object writeReplace()
org.eclipse.collections.impl back to summary

public Class SynchronizedRichIterable.SynchronizedRichIterableSerializationProxy<T>

extends Object
implements Externalizable
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.SynchronizedRichIterable.SynchronizedRichIterableSerializationProxy
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable

Field Summary

Modifier and TypeField and Description
private RichIterable<T>
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

protected Object
public void
writeExternal(ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

richIterableback to summary
private RichIterable<T> richIterable
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SynchronizedRichIterableSerializationProxyback to summary
public SynchronizedRichIterableSerializationProxy()
SynchronizedRichIterableSerializationProxyback to summary
public SynchronizedRichIterableSerializationProxy(RichIterable<T> iterable)

Method Detail

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Implements java.io.Externalizable.readExternal.

Doc from java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

Annotations
@Override
Exceptions
IOException:
if I/O errors occur
ClassNotFoundException:
If the class for an object being restored cannot be found.
readResolveback to summary
protected Object readResolve()
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Implements java.io.Externalizable.writeExternal.

Doc from java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Annotations
@Override
Exceptions
IOException:
Includes any I/O exceptions that may occur