Class SynchronizedIntSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedIntCollection
org.eclipse.collections.impl.set.mutable.primitive.SynchronizedIntSet
- All Implemented Interfaces:
Serializable,MutableIntCollection,IntIterable,PrimitiveIterable,IntSet,MutableIntSet
A synchronized view of a
MutableIntSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
IntIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLazy()boxed()cartesianProduct(IntSet set) <V> MutableSet<V>collect(IntToObjectFunction<? extends V> function) booleanfreeze()inthashCode()newEmpty()static SynchronizedIntSetof(MutableIntSet set) This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.static SynchronizedIntSetof(MutableIntSet set, Object lock) This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet.reject(IntPredicate predicate) select(IntPredicate predicate) with(int element) withAll(IntIterable elements) without(int element) withoutAll(IntIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedIntCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, intIterator, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.IntIterable
allSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.IntSet
isProperSubsetOf, isSubsetOfMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableIntCollection
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableIntSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
SynchronizedIntSet
-
SynchronizedIntSet
-
-
Method Details
-
of
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet. -
of
This method will take a MutableIntSet and wrap it directly in a SynchronizedIntSet. Additionally, a developer specifies which lock to use with the collection. -
without
- Specified by:
withoutin interfaceMutableIntCollection- Specified by:
withoutin interfaceMutableIntSet- Overrides:
withoutin classAbstractSynchronizedIntCollection
-
boxed
- Specified by:
boxedin interfaceMutableIntSet
-
with
- Specified by:
within interfaceMutableIntCollection- Specified by:
within interfaceMutableIntSet- Overrides:
within classAbstractSynchronizedIntCollection
-
withAll
- Specified by:
withAllin interfaceMutableIntCollection- Specified by:
withAllin interfaceMutableIntSet- Overrides:
withAllin classAbstractSynchronizedIntCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableIntCollection- Specified by:
withoutAllin interfaceMutableIntSet- Overrides:
withoutAllin classAbstractSynchronizedIntCollection
-
select
- Specified by:
selectin interfaceIntIterable- Specified by:
selectin interfaceIntSet- Specified by:
selectin interfaceMutableIntCollection- Specified by:
selectin interfaceMutableIntSet- Overrides:
selectin classAbstractSynchronizedIntCollection
-
reject
- Specified by:
rejectin interfaceIntIterable- Specified by:
rejectin interfaceIntSet- Specified by:
rejectin interfaceMutableIntCollection- Specified by:
rejectin interfaceMutableIntSet- Overrides:
rejectin classAbstractSynchronizedIntCollection
-
collect
- Specified by:
collectin interfaceIntIterable- Specified by:
collectin interfaceIntSet- Specified by:
collectin interfaceMutableIntCollection- Specified by:
collectin interfaceMutableIntSet- Overrides:
collectin classAbstractSynchronizedIntCollection
-
cartesianProduct
- Specified by:
cartesianProductin interfaceIntSet
-
equals
-
hashCode
public int hashCode() -
asLazy
- Specified by:
asLazyin interfaceIntIterable- Overrides:
asLazyin classAbstractSynchronizedIntCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableIntCollection- Specified by:
asUnmodifiablein interfaceMutableIntSet- Overrides:
asUnmodifiablein classAbstractSynchronizedIntCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableIntCollection- Specified by:
asSynchronizedin interfaceMutableIntSet- Overrides:
asSynchronizedin classAbstractSynchronizedIntCollection
-
freeze
- Specified by:
freezein interfaceIntSet- Specified by:
freezein interfaceMutableIntSet
-
toImmutable
- Specified by:
toImmutablein interfaceIntSet- Specified by:
toImmutablein interfaceMutableIntCollection- Specified by:
toImmutablein interfaceMutableIntSet- Overrides:
toImmutablein classAbstractSynchronizedIntCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableIntCollection- Specified by:
newEmptyin interfaceMutableIntSet- Since:
- 9.2.
-