| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| pack-priv | ImmutableShortShortMapKeySet(short[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | allSatisfy(ShortPredicate predicate)
Implements org. 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. 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. Prints a string representation of this collection onto the given |
| public <V> ImmutableSet | collect(ShortToObjectFunction<? extends V> function)
Implements org. 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. Returns true if the value is contained in the ShortIterable, and false if it is not. |
| public int | count(ShortPredicate predicate)
Implements org. Returns a count of the number of elements in the ShortIterable that return true for the specified predicate. |
| public short | detectIfNone(ShortPredicate predicate, short ifNone)
Implements org.
|
| public void | each(ShortProcedure procedure)
Implements org. A synonym for forEach. |
| public void | forEach(ShortProcedure procedure)
Overrides default org. Applies the ShortProcedure to each element in the ShortIterable. |
| public int | hashCode()
Implements abstract org. Implements org. Follows the same general contract as |
| public <T> T | injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function)
Implements org.
|
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private int | |
| public short | |
| public short | |
| public boolean | noneSatisfy(ShortPredicate predicate)
Overrides default org. Returns true if none of the elements in the ShortIterable return true for the specified predicate, otherwise returns false. |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public ImmutableShortSet | reject(ShortPredicate predicate)
Implements org. 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. Returns a new ShortIterable with all of the elements in the ShortIterable that return true for the specified predicate. |
| public ShortIterator | shortIterator()
Implements org. Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style. |
| public int | size()
Implements org. Returns the number of items in this iterable. |
| pack-priv int | |
| pack-priv int | |
| public long | |
| public short[] | toArray()
Implements org. Converts the ShortIterable to a primitive short array. |
| public short[] | toArray(short[] array)
Overrides default org. Converts the ShortIterable to a primitive short array. |
| private Object |
| CACHE_LINE_SIZE | back to summary |
|---|---|
| private static final int CACHE_LINE_SIZE | |
| containsOneKey | back to summary |
|---|---|
| private final boolean containsOneKey | |
| containsZeroKey | back to summary |
|---|---|
| private final boolean containsZeroKey | |
| EMPTY_KEY | back to summary |
|---|---|
| private static final short EMPTY_KEY | |
| INITIAL_LINEAR_PROBE | back to summary |
|---|---|
| private static final int INITIAL_LINEAR_PROBE | |
| KEY_SIZE | back to summary |
|---|---|
| private static final int KEY_SIZE | |
| keysValues | back to summary |
|---|---|
| private final short[] keysValues | |
| occupiedWithData | back to summary |
|---|---|
| private final int occupiedWithData | |
| REMOVED_KEY | back to summary |
|---|---|
| private static final short REMOVED_KEY | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ImmutableShortShortMapKeySet | back to summary |
|---|---|
| pack-priv ImmutableShortShortMapKeySet(short[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey) | |
| allSatisfy | back to summary |
|---|---|
| public boolean allSatisfy(ShortPredicate predicate) Implements org. Doc from org. Returns true if all of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.
| |
| anySatisfy | back to summary |
|---|---|
| public boolean anySatisfy(ShortPredicate predicate) Implements org. Doc from org. Returns true if any of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.
| |
| appendString | back to summary |
|---|---|
| public void appendString(Appendable appendable, String start, String separator, String end) Implements org. Doc from org. Prints a string representation of this collection onto the given
| |
| collect | back to summary |
|---|---|
| public <V> ImmutableSet Implements org. Doc from org. 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.
| |
| contains | back to summary |
|---|---|
| public boolean contains(short value) Implements org. Doc from org. Returns true if the value is contained in the ShortIterable, and false if it is not.
| |
| count | back to summary |
|---|---|
| public int count(ShortPredicate predicate) Implements org. Doc from org. Returns a count of the number of elements in the ShortIterable that return true for the specified predicate.
| |
| detectIfNone | back to summary |
|---|---|
| public short detectIfNone(ShortPredicate predicate, short ifNone) Implements org.
| |
| each | back to summary |
|---|---|
| public void each(ShortProcedure procedure) Implements org. Doc from org. A synonym for forEach.
| |
| forEach | back to summary |
|---|---|
| public void forEach(ShortProcedure procedure) Overrides default org. Doc from org. Applies the ShortProcedure to each element in the ShortIterable.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Implements org. Doc from org. Follows the same general contract as
| |
| injectInto | back to summary |
|---|---|
| public <T> T injectInto(T injectedValue, ObjectShortToObjectFunction<? super T, ? extends T> function) Implements org.
| |
| isEmptyKey | back to summary |
|---|---|
| private static boolean isEmptyKey(short key) | |
| isNonSentinel | back to summary |
|---|---|
| private static boolean isNonSentinel(short key) | |
| isRemovedKey | back to summary |
|---|---|
| private static boolean isRemovedKey(short key) | |
| mask | back to summary |
|---|---|
| private int mask(int spread) | |
| max | back to summary |
|---|---|
| public short max() Implements org.
| |
| min | back to summary |
|---|---|
| public short min() Implements org.
| |
| noneSatisfy | back to summary |
|---|---|
| public boolean noneSatisfy(ShortPredicate predicate) Overrides default org. Doc from org. Returns true if none of the elements in the ShortIterable return true for the specified predicate, otherwise returns false.
| |
| probe | back to summary |
|---|---|
| pack-priv int probe(short element) | |
| probeThree | back to summary |
|---|---|
| pack-priv int probeThree(short element, int removedIndex) | |
| probeTwo | back to summary |
|---|---|
| pack-priv int probeTwo(short element, int removedIndex) | |
| reject | back to summary |
|---|---|
| public ImmutableShortSet reject(ShortPredicate predicate) Implements org. Doc from org. Returns a new ShortIterable with all of the elements in the ShortIterable that return false for the specified predicate.
| |
| select | back to summary |
|---|---|
| public ImmutableShortSet select(ShortPredicate predicate) Implements org. Doc from org. Returns a new ShortIterable with all of the elements in the ShortIterable that return true for the specified predicate.
| |
| shortIterator | back to summary |
|---|---|
| public ShortIterator shortIterator() Implements org. Doc from org. Returns a primitive iterator that can be used to iterate over the ShortIterable in an imperative style.
| |
| size | back to summary |
|---|---|
| public int size() Implements org. Doc from org. Returns the number of items in this iterable.
| |
| spreadAndMask | back to summary |
|---|---|
| pack-priv int spreadAndMask(short element) | |
| spreadTwoAndMask | back to summary |
|---|---|
| pack-priv int spreadTwoAndMask(short element) | |
| sum | back to summary |
|---|---|
| public long sum() Implements org.
| |
| toArray | back to summary |
|---|---|
| public short[] toArray() Implements org. Doc from org. Converts the ShortIterable to a primitive short array.
| |
| toArray | back to summary |
|---|---|
| public short[] toArray(short[] array) Overrides default org. Doc from org. 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.
| |
| writeReplace | back to summary |
|---|---|
| private Object writeReplace() | |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private boolean | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public short |
| count | back to summary |
|---|---|
| private int count | |
| handledOne | back to summary |
|---|---|
| private boolean handledOne | |
| handledZero | back to summary |
|---|---|
| private boolean handledZero | |
| position | back to summary |
|---|---|
| private int position | |
| InternalShortIterator | back to summary |
|---|---|
| private InternalShortIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org.
| |
| next | back to summary |
|---|---|
| public short next() Implements org.
| |