Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.map.mutable.primitive

pack-priv Class ImmutableIntMapKeySet

extends AbstractImmutableIntSet
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException, .Serializable, java.util.NoSuchElementException, org.eclipse.collections.impl.SpreadFunctions, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, .ObjectIntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.iterator.IntIterator, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.primitive.ImmutableIntSet, org.eclipse.collections.impl.set.immutable.primitive.ImmutableIntSetSerializationProxy, .AbstractImmutableIntSet, org.eclipse.collections.impl.set.mutable.UnifiedSet, org.eclipse.collections.impl.set.mutable.primitive.IntHashSet

This file was automatically generated from template file immutablePrimitiveMapKeySet.stg
Since
6.0.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final int
private final boolean
private final boolean
private static final int
private static final int
private static final int
private final int[]
private final int
private static final int
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ImmutableIntMapKeySet(int[] keys, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Summary

Modifier and TypeMethod and Description
public boolean
allSatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public <V> ImmutableSet<V>
collect(IntToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.collect, org.eclipse.collections.api.set.primitive.IntSet.collect, org.eclipse.collections.api.IntIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public boolean
contains(int value)

Implements org.eclipse.collections.api.IntIterable.contains.

Returns true if the value is contained in the IntIterable, and false if it is not.

public int
count(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.count.

Returns a count of the number of elements in the IntIterable that return true for the specified predicate.

public int
public void
each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

public void
forEach(IntProcedure procedure)

Overrides default org.eclipse.collections.api.IntIterable.forEach.

Applies the IntProcedure to each element in the IntIterable.

public int
public <T> T
injectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.IntIterable.injectInto.

public IntIterator
intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.

private static boolean
isEmptyKey(int key)

private static boolean
isNonSentinel(int key)

private static boolean
isRemovedKey(int key)

private int
mask(int spread)

public int
public int
public boolean
noneSatisfy(IntPredicate predicate)

Overrides default org.eclipse.collections.api.IntIterable.noneSatisfy.

Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

pack-priv int
probe(int element)

pack-priv int
probeThree(int element, int removedIndex)

pack-priv int
probeTwo(int element, int removedIndex)

public ImmutableIntSet
reject(IntPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.reject, org.eclipse.collections.api.set.primitive.IntSet.reject, org.eclipse.collections.api.IntIterable.reject.

Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.

public ImmutableIntSet
select(IntPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.select, org.eclipse.collections.api.set.primitive.IntSet.select, org.eclipse.collections.api.IntIterable.select.

Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

pack-priv int
spreadAndMask(int element)

pack-priv int
spreadTwoAndMask(int element)

public long
public int[]
toArray()

Implements org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

public int[]
toArray(int[] array)

Overrides default org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

private Object
Inherited from org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableIntSet:
chunkfreezenewWithnewWithAllnewWithoutnewWithoutAlltoImmutable

Field Detail

CACHE_LINE_SIZEback to summary
private static final int CACHE_LINE_SIZE
containsOneKeyback to summary
private final boolean containsOneKey
containsZeroKeyback to summary
private final boolean containsZeroKey
EMPTY_KEYback to summary
private static final int EMPTY_KEY
INITIAL_LINEAR_PROBEback to summary
private static final int INITIAL_LINEAR_PROBE
KEY_SIZEback to summary
private static final int KEY_SIZE
keysback to summary
private final int[] keys
occupiedWithDataback to summary
private final int occupiedWithData
REMOVED_KEYback to summary
private static final int REMOVED_KEY
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ImmutableIntMapKeySetback to summary
pack-priv ImmutableIntMapKeySet(int[] keys, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.allSatisfy.

Doc from org.eclipse.collections.api.IntIterable.allSatisfy.

Returns true if all of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.anySatisfy.

Doc from org.eclipse.collections.api.IntIterable.anySatisfy.

Returns true if any of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Doc from org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String, String, String).

Annotations
@Override
collectback to summary
public <V> ImmutableSet<V> collect(IntToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.collect, org.eclipse.collections.api.set.primitive.IntSet.collect, org.eclipse.collections.api.IntIterable.collect.

Doc from org.eclipse.collections.api.IntIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
containsback to summary
public boolean contains(int value)

Implements org.eclipse.collections.api.IntIterable.contains.

Doc from org.eclipse.collections.api.IntIterable.contains.

Returns true if the value is contained in the IntIterable, and false if it is not.

Annotations
@Override
countback to summary
public int count(IntPredicate predicate)

Implements org.eclipse.collections.api.IntIterable.count.

Doc from org.eclipse.collections.api.IntIterable.count.

Returns a count of the number of elements in the IntIterable that return true for the specified predicate.

Annotations
@Override
detectIfNoneback to summary
public int detectIfNone(IntPredicate predicate, int ifNone)

Implements org.eclipse.collections.api.IntIterable.detectIfNone.

Annotations
@Override
eachback to summary
public void each(IntProcedure procedure)

Implements org.eclipse.collections.api.IntIterable.each.

Doc from org.eclipse.collections.api.IntIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
forEachback to summary
public void forEach(IntProcedure procedure)

Overrides default org.eclipse.collections.api.IntIterable.forEach.

Doc from org.eclipse.collections.api.IntIterable.forEach.

Applies the IntProcedure to each element in the IntIterable.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Implements abstract org.eclipse.collections.impl.set.primitive.AbstractIntSet.hashCode.

Implements org.eclipse.collections.api.set.primitive.IntSet.hashCode.

Doc from org.eclipse.collections.api.set.primitive.IntSet.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectIntToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.IntIterable.injectInto.

Annotations
@Override
intIteratorback to summary
public IntIterator intIterator()

Implements org.eclipse.collections.api.IntIterable.intIterator.

Doc from org.eclipse.collections.api.IntIterable.intIterator.

Returns a primitive iterator that can be used to iterate over the IntIterable in an imperative style.

Annotations
@Override
isEmptyKeyback to summary
private static boolean isEmptyKey(int key)
isNonSentinelback to summary
private static boolean isNonSentinel(int key)
isRemovedKeyback to summary
private static boolean isRemovedKey(int key)
maskback to summary
private int mask(int spread)
maxback to summary
public int max()

Implements org.eclipse.collections.api.IntIterable.max.

Annotations
@Override
minback to summary
public int min()

Implements org.eclipse.collections.api.IntIterable.min.

Annotations
@Override
noneSatisfyback to summary
public boolean noneSatisfy(IntPredicate predicate)

Overrides default org.eclipse.collections.api.IntIterable.noneSatisfy.

Doc from org.eclipse.collections.api.IntIterable.noneSatisfy.

Returns true if none of the elements in the IntIterable return true for the specified predicate, otherwise returns false.

Annotations
@Override
probeback to summary
pack-priv int probe(int element)
probeThreeback to summary
pack-priv int probeThree(int element, int removedIndex)
probeTwoback to summary
pack-priv int probeTwo(int element, int removedIndex)
rejectback to summary
public ImmutableIntSet reject(IntPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.reject, org.eclipse.collections.api.set.primitive.IntSet.reject, org.eclipse.collections.api.IntIterable.reject.

Doc from org.eclipse.collections.api.IntIterable.reject.

Returns a new IntIterable with all of the elements in the IntIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public ImmutableIntSet select(IntPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableIntSet.select, org.eclipse.collections.api.set.primitive.IntSet.select, org.eclipse.collections.api.IntIterable.select.

Doc from org.eclipse.collections.api.IntIterable.select.

Returns a new IntIterable with all of the elements in the IntIterable that return true for the specified predicate.

Annotations
@Override
sizeback to summary
public int size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
spreadAndMaskback to summary
pack-priv int spreadAndMask(int element)
spreadTwoAndMaskback to summary
pack-priv int spreadTwoAndMask(int element)
sumback to summary
public long sum()

Implements org.eclipse.collections.api.IntIterable.sum.

Annotations
@Override
toArrayback to summary
public int[] toArray()

Implements org.eclipse.collections.api.IntIterable.toArray.

Doc from org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array.

Annotations
@Override
toArrayback to summary
public int[] toArray(int[] array)

Overrides default org.eclipse.collections.api.IntIterable.toArray.

Doc from org.eclipse.collections.api.IntIterable.toArray.

Converts the IntIterable to a primitive int array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.

Annotations
@Override
writeReplaceback to summary
private Object writeReplace()
org.eclipse.collections.impl.map.mutable.primitive back to summary

private Class ImmutableIntMapKeySet.InternalIntIterator

extends Object
implements IntIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.map.mutable.primitive.ImmutableIntMapKeySet.InternalIntIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.IntIterator

Field Summary

Modifier and TypeField and Description
private int
private boolean
private boolean
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private int count
handledOneback to summary
private boolean handledOne
handledZeroback to summary
private boolean handledZero
positionback to summary
private int position

Constructor Detail

InternalIntIteratorback to summary
private InternalIntIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.IntIterator.hasNext.

Annotations
@Override
nextback to summary
public int next()

Implements org.eclipse.collections.api.iterator.IntIterator.next.

Annotations
@Override