Package org.glassfish.jersey.internal.util.collection
Common set of Jersey collection classes.
-
Interface Summary Interface Description Cache.CycleHandler<K> Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.KeyComparator<K> A key comparator.LazyUnsafeValue<T,E extends java.lang.Throwable> Lazily initializedunsafe value
.LazyValue<T> Lazily initializedvalue
.Ref<T> A possibly mutable value reference.Settable<T> A generic settable value container.TransferQueue<E> ABlockingQueue
in which producers may wait for consumers to receive elements.UnsafeValue<T,E extends java.lang.Throwable> A generic value provider, similar toValue
, but able to throw an exception.Value<T> A generic value provider. -
Class Summary Class Description ByteBufferInputStream AnInputStream
backed by a queue ofbyte buffers
to be read.Cache<K,V> Cache implementation that relies on FutureTask.ClassTypePair A pair of raw class and the related type.ConcurrentHashMapV8<K,V> A hash table supporting full concurrency of retrievals and high expected concurrency for updates.ConcurrentHashMapV8.BaseIterator<K,V> Base of key, value, and entry Iterators.ConcurrentHashMapV8.CollectionView<K,V,E> Base class for views.ConcurrentHashMapV8.CounterCell ConcurrentHashMapV8.CounterHashCode Holder for the thread-local hash code determining which CounterCell to use.ConcurrentHashMapV8.EntryIterator<K,V> ConcurrentHashMapV8.EntrySetView<K,V> A view of a ConcurrentHashMapV8 as aSet
of (key, value) entries.ConcurrentHashMapV8.ForwardingNode<K,V> A node inserted at head of bins during transfer operations.ConcurrentHashMapV8.KeyIterator<K,V> ConcurrentHashMapV8.KeySetView<K,V> A view of a ConcurrentHashMapV8 as aSet
of keys, in which additions may optionally be enabled by mapping to a common value.ConcurrentHashMapV8.MapEntry<K,V> Exported Entry for EntryIteratorConcurrentHashMapV8.Node<K,V> Key-value entry.ConcurrentHashMapV8.ReservationNode<K,V> A place-holder node used in computeIfAbsent and computeConcurrentHashMapV8.Segment<K,V> Stripped-down version of helper class used in previous version, declared for the sake of serialization compatibilityConcurrentHashMapV8.Traverser<K,V> Encapsulates traversal for methods such as containsValue; also serves as a base class for other iterators and spliterators.ConcurrentHashMapV8.TreeBin<K,V> TreeNodes used at the heads of bins.ConcurrentHashMapV8.TreeNode<K,V> Nodes for use in TreeBinsConcurrentHashMapV8.ValueIterator<K,V> ConcurrentHashMapV8.ValuesView<K,V> A view of a ConcurrentHashMapV8 as aCollection
of values, in which additions are disabled.DataStructures Utility class, which tries to pickup the best collection implementation depending on running environment.ImmutableCollectors Set of convenient function regarding a collection immutability.ImmutableMultivaluedMap<K,V> An immutable view of aMultivaluedMap
.KeyComparatorHashMap<K,V> A implementation similar toHashMap
but supports the comparison of keys using aKeyComparator
.KeyComparatorHashMap.Entry<K,V> KeyComparatorLinkedHashMap<K,V> A implementation similar toLinkedHashMap
but supports the comparison of keys using aKeyComparator
.KeyComparatorLinkedHashMap.Entry<K,V> LinkedHashMap entry.LinkedTransferQueue<E> An unboundedTransferQueue
based on linked nodes.LinkedTransferQueue.Node Queue nodes.MultivaluedStringMap An implementation ofMultivaluedMap
where keys and values are instances of String.NonBlockingInputStream An abstractInputStream
extension that defines contract for non-blocking streamingread
operations.NullableMultivaluedHashMap<K,V> An implementation ofMultivaluedMap
where values can benull
.Refs A collection ofreference
factory & utility methods.Refs.DefaultRefImpl<T> Default (mutable)Ref
implementation.Refs.ImmutableRefImpl<T> ImmutableRef
implementation.Refs.ThreadSafeRefImpl<T> Thread-safeRef
implementation.StringIgnoreCaseKeyComparator Case insensitive String key comparator.StringKeyIgnoreCaseMultivaluedMap<V> Multivalued map with String keys that are compared with each other using the case insensitive method.ThreadLocalRandom A random number generator isolated to the current thread.Values A collection ofValue provider
factory & utility methods.Values.EagerValue<T> Values.ExceptionValue<T,E extends java.lang.Throwable> Values.InstanceUnsafeValue<T,E extends java.lang.Throwable> Values.InstanceValue<T> Values.LazyUnsafeValueImpl<T,E extends java.lang.Throwable> Values.LazyValueImpl<T> Views Collections utils, which provide transforming views forList
andMap
.