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

pack-priv Class ImmutableByteMapKeySet

extends AbstractImmutableByteSet
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException, .Serializable, java.util.NoSuchElementException, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, .ObjectByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.block.procedure.primitive.ByteProcedure, org.eclipse.collections.api.iterator.ByteIterator, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.primitive.ImmutableByteSet, org.eclipse.collections.impl.set.immutable.primitive.ImmutableByteSetSerializationProxy, .AbstractImmutableByteSet, org.eclipse.collections.impl.set.mutable.UnifiedSet, org.eclipse.collections.impl.set.mutable.primitive.ByteHashSet

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 byte
private static final int
private static final int
private final byte[]
private final int
private static final byte
private static final long

Constructor Summary

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

Method Summary

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

Implements org.eclipse.collections.api.ByteIterable.allSatisfy.

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

public boolean
anySatisfy(BytePredicate predicate)

Implements org.eclipse.collections.api.ByteIterable.anySatisfy.

Returns true if any of the elements in the ByteIterable 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 ByteIterator
byteIterator()

Implements org.eclipse.collections.api.ByteIterable.byteIterator.

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

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

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.collect, org.eclipse.collections.api.set.primitive.ByteSet.collect, org.eclipse.collections.api.ByteIterable.collect.

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

public boolean
contains(byte value)

Implements org.eclipse.collections.api.ByteIterable.contains.

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

public int
count(BytePredicate predicate)

Implements org.eclipse.collections.api.ByteIterable.count.

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

public byte
public void
each(ByteProcedure procedure)

Implements org.eclipse.collections.api.ByteIterable.each.

A synonym for forEach.

public void
forEach(ByteProcedure procedure)

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

Applies the ByteProcedure to each element in the ByteIterable.

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

Implements org.eclipse.collections.api.ByteIterable.injectInto.

private static boolean
isEmptyKey(byte key)

private static boolean
isNonSentinel(byte key)

private static boolean
isRemovedKey(byte key)

private int
mask(int spread)

public byte
public byte
public boolean
noneSatisfy(BytePredicate predicate)

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

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

pack-priv int
probe(byte element)

public ImmutableByteSet
reject(BytePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.reject, org.eclipse.collections.api.set.primitive.ByteSet.reject, org.eclipse.collections.api.ByteIterable.reject.

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

public ImmutableByteSet
select(BytePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.select, org.eclipse.collections.api.set.primitive.ByteSet.select, org.eclipse.collections.api.ByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable 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(byte element)

public long
public byte[]
toArray()

Implements org.eclipse.collections.api.ByteIterable.toArray.

Converts the ByteIterable to a primitive byte array.

public byte[]
toArray(byte[] array)

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

Converts the ByteIterable to a primitive byte array.

private Object
Inherited from org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableByteSet:
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 byte 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 byte[] keys
occupiedWithDataback to summary
private final int occupiedWithData
REMOVED_KEYback to summary
private static final byte REMOVED_KEY
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ImmutableByteMapKeySetback to summary
pack-priv ImmutableByteMapKeySet(byte[] keys, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(BytePredicate predicate)

Implements org.eclipse.collections.api.ByteIterable.allSatisfy.

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

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

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

Implements org.eclipse.collections.api.ByteIterable.anySatisfy.

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

Returns true if any of the elements in the ByteIterable 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
byteIteratorback to summary
public ByteIterator byteIterator()

Implements org.eclipse.collections.api.ByteIterable.byteIterator.

Doc from org.eclipse.collections.api.ByteIterable.byteIterator.

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

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

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.collect, org.eclipse.collections.api.set.primitive.ByteSet.collect, org.eclipse.collections.api.ByteIterable.collect.

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

Implements org.eclipse.collections.api.ByteIterable.contains.

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

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

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

Implements org.eclipse.collections.api.ByteIterable.count.

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

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

Annotations
@Override
detectIfNoneback to summary
public byte detectIfNone(BytePredicate predicate, byte ifNone)

Implements org.eclipse.collections.api.ByteIterable.detectIfNone.

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

Implements org.eclipse.collections.api.ByteIterable.each.

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

A synonym for forEach.

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

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

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

Applies the ByteProcedure to each element in the ByteIterable.

Annotations
@Override
hashCodeback to summary
public int hashCode()

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

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

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

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

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

Implements org.eclipse.collections.api.ByteIterable.injectInto.

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

Implements org.eclipse.collections.api.ByteIterable.max.

Annotations
@Override
minback to summary
public byte min()

Implements org.eclipse.collections.api.ByteIterable.min.

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

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

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

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

Annotations
@Override
probeback to summary
pack-priv int probe(byte element)
rejectback to summary
public ImmutableByteSet reject(BytePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.reject, org.eclipse.collections.api.set.primitive.ByteSet.reject, org.eclipse.collections.api.ByteIterable.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableByteSet select(BytePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableByteSet.select, org.eclipse.collections.api.set.primitive.ByteSet.select, org.eclipse.collections.api.ByteIterable.select.

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

Returns a new ByteIterable with all of the elements in the ByteIterable 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(byte element)
sumback to summary
public long sum()

Implements org.eclipse.collections.api.ByteIterable.sum.

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

Implements org.eclipse.collections.api.ByteIterable.toArray.

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

Converts the ByteIterable to a primitive byte array.

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

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

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

Converts the ByteIterable to a primitive byte 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 ImmutableByteMapKeySet.InternalByteIterator

extends Object
implements ByteIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.map.mutable.primitive.ImmutableByteMapKeySet.InternalByteIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.ByteIterator

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

InternalByteIteratorback to summary
private InternalByteIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

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

Annotations
@Override
nextback to summary
public byte next()

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

Annotations
@Override