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

pack-priv Class ImmutableShortShortMapKeySet

extends AbstractImmutableShortSet
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.ShortToObjectFunction, .ObjectShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.iterator.ShortIterator, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.primitive.ImmutableShortSet, org.eclipse.collections.impl.set.immutable.primitive.ImmutableShortSetSerializationProxy, .AbstractImmutableShortSet, org.eclipse.collections.impl.set.mutable.UnifiedSet, org.eclipse.collections.impl.set.mutable.primitive.ShortHashSet

This file was automatically generated from template file immutablePrimitivePrimitiveMapKeySet.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 short
private static final int
private static final int
private final short[]
private final int
private static final short
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ImmutableShortShortMapKeySet(short[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Summary

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

Implements org.eclipse.collections.api.ShortIterable.allSatisfy.

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

public boolean
anySatisfy(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.anySatisfy.

Returns true if any of the elements in the ShortIterable 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(ShortToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.collect, org.eclipse.collections.api.set.primitive.ShortSet.collect, org.eclipse.collections.api.ShortIterable.collect.

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

public boolean
contains(short value)

Implements org.eclipse.collections.api.ShortIterable.contains.

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

public int
count(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.count.

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

public short
public void
each(ShortProcedure procedure)

Implements org.eclipse.collections.api.ShortIterable.each.

A synonym for forEach.

public void
forEach(ShortProcedure procedure)

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

Applies the ShortProcedure to each element in the ShortIterable.

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

Implements org.eclipse.collections.api.ShortIterable.injectInto.

private static boolean
isEmptyKey(short key)

private static boolean
isNonSentinel(short key)

private static boolean
isRemovedKey(short key)

private int
mask(int spread)

public short
public short
public boolean
noneSatisfy(ShortPredicate predicate)

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

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

pack-priv int
probe(short element)

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

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

public ImmutableShortSet
reject(ShortPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.reject, org.eclipse.collections.api.set.primitive.ShortSet.reject, org.eclipse.collections.api.ShortIterable.reject.

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

public ImmutableShortSet
select(ShortPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.select, org.eclipse.collections.api.set.primitive.ShortSet.select, org.eclipse.collections.api.ShortIterable.select.

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

public ShortIterator
shortIterator()

Implements org.eclipse.collections.api.ShortIterable.shortIterator.

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

public int
size()

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

Returns the number of items in this iterable.

pack-priv int
spreadAndMask(short element)

pack-priv int
spreadTwoAndMask(short element)

public long
public short[]
toArray()

Implements org.eclipse.collections.api.ShortIterable.toArray.

Converts the ShortIterable to a primitive short array.

public short[]
toArray(short[] array)

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

Converts the ShortIterable to a primitive short array.

private Object
Inherited from org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableShortSet:
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 short EMPTY_KEY
INITIAL_LINEAR_PROBEback to summary
private static final int INITIAL_LINEAR_PROBE
KEY_SIZEback to summary
private static final int KEY_SIZE
keysValuesback to summary
private final short[] keysValues
occupiedWithDataback to summary
private final int occupiedWithData
REMOVED_KEYback to summary
private static final short REMOVED_KEY
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ImmutableShortShortMapKeySetback to summary
pack-priv ImmutableShortShortMapKeySet(short[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(ShortPredicate predicate)

Implements org.eclipse.collections.api.ShortIterable.allSatisfy.

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

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

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

Implements org.eclipse.collections.api.ShortIterable.anySatisfy.

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

Returns true if any of the elements in the ShortIterable 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(ShortToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.collect, org.eclipse.collections.api.set.primitive.ShortSet.collect, org.eclipse.collections.api.ShortIterable.collect.

Doc from org.eclipse.collections.api.ShortIterable.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(short value)

Implements org.eclipse.collections.api.ShortIterable.contains.

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

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

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

Implements org.eclipse.collections.api.ShortIterable.count.

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

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

Annotations
@Override
detectIfNoneback to summary
public short detectIfNone(ShortPredicate predicate, short ifNone)

Implements org.eclipse.collections.api.ShortIterable.detectIfNone.

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

Implements org.eclipse.collections.api.ShortIterable.each.

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

A synonym for forEach.

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

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

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

Applies the ShortProcedure to each element in the ShortIterable.

Annotations
@Override
hashCodeback to summary
public int hashCode()

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

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

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

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

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

Implements org.eclipse.collections.api.ShortIterable.injectInto.

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

Implements org.eclipse.collections.api.ShortIterable.max.

Annotations
@Override
minback to summary
public short min()

Implements org.eclipse.collections.api.ShortIterable.min.

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

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

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

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

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

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.reject, org.eclipse.collections.api.set.primitive.ShortSet.reject, org.eclipse.collections.api.ShortIterable.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableShortSet select(ShortPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableShortSet.select, org.eclipse.collections.api.set.primitive.ShortSet.select, org.eclipse.collections.api.ShortIterable.select.

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

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

Annotations
@Override
shortIteratorback to summary
public ShortIterator shortIterator()

Implements org.eclipse.collections.api.ShortIterable.shortIterator.

Doc from org.eclipse.collections.api.ShortIterable.shortIterator.

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

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(short element)
spreadTwoAndMaskback to summary
pack-priv int spreadTwoAndMask(short element)
sumback to summary
public long sum()

Implements org.eclipse.collections.api.ShortIterable.sum.

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

Implements org.eclipse.collections.api.ShortIterable.toArray.

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

Converts the ShortIterable to a primitive short array.

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

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

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

Converts the ShortIterable to a primitive short 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 ImmutableShortShortMapKeySet.InternalShortIterator

extends Object
implements ShortIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.map.mutable.primitive.ImmutableShortShortMapKeySet.InternalShortIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.ShortIterator

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 short
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

InternalShortIteratorback to summary
private InternalShortIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

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

Annotations
@Override
nextback to summary
public short next()

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

Annotations
@Override