APIdia Launch Partner
Top Description Inners Fields Constructors Methods
java.util

pack-priv final Class LazyCollections

extends Object
Class Inheritance
Annotations
@AOTSafeClassInitializer
Imports
jdk.internal.lang.LazyConstantImpl, jdk.internal.misc.Unsafe, jdk.internal.util.ImmutableBitSetPredicate, jdk.internal.vm.annotation.AOTSafeClassInitializer, .ForceInline, .Stable, java.lang.reflect.Array, java.util.concurrent.atomic.AtomicInteger, java.util.function.BiConsumer, .Consumer, .Function, .IntFunction, .IntPredicate, .Predicate

Container class for lazy collections implementations. Not part of the public API.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract static class
private static class
LazyCollections.FunctionHolder<
the underlying function type
U
>

This class is thread safe.

private static class
pack-priv static class
private static class
private static class
private static class
private static class
LazyCollections.Throwables

Holds the throwable class names produced by the computing function.

Field Summary

Modifier and TypeField and Description
private static final Unsafe

Constructor Summary

AccessConstructor and Description
private
LazyCollections()

No instances.

Method Summary

Modifier and TypeMethod and Description
private static InternalError
private static long
expandToLong(int value)

private static <E> E[]
newGenericArray(int length)

private static NoSuchElementException
noSuchElementException(String throwableName, Object input, Throwable cause)

private static long
offsetFor(long index)

pack-priv static <E> List<E>
ofLazyList(int size, IntFunction<? extends E> computingFunction)

pack-priv static <K, V> Map<K, V>
ofLazyMap(Set<K> keys, Function<? super K, ? extends V> computingFunction)

pack-priv static <K, E extends Enum<E>, V> Map<K, V>
ofLazyMapWithEnumKeys(Set<K> keys, Function<? super K, ? extends V> computingFunction)

pack-priv static <E> Set<E>
ofLazySet(Set<? extends E> elementCandidates, Predicate<? super E> computingFunction)

private static <T> T
orElseComputeSlowPath(final T[] array, final int index, final LazyCollections.Mutexes mutexes, final LazyCollections.Throwables throwables, final Object input, final LazyCollections.FunctionHolder<?> functionHolder)

private static void
private static int
reduceToInt(long value)

private static <T> void
set(T[] array, int index, Object mutex, T newValue)

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait