Package org.infinispan.commons.util
package org.infinispan.commons.util
Commons package providing various utility classes
- Public API
-
ClassDescriptionDelegating collection that delegates all calls to the collection returned from
AbstractDelegatingCollection.delegate()
Abstract class that provides a method to round up to the nearest value of 8 which is important for most jvm when doing size calculations.Abstract iterator that allows overriding just theAbstractIterator.getNext()
method to implement it.AbstractMap<K,V> Similar to the JDK's AbstractMap, this provides common functionality for custom map implementations.A ClassLoader that delegates loading of classes and resources to a list of delegate ClassLoaders.ArrayMap<K,V> Base for classes that implement hash map by storing keys in one array and values in another.Simple JavaBean manipulation helper methodsBloomFilter<E>ByRef<T>This class can be used to pass an argument by reference.Implementation for primitive typeParser human-readable quantity of bytes.Find infinispan classes utilityAURLStreamHandlerFactory
which can handle classpath: URI schemes.Interface that provides semantics of aIterable
andAutoCloseable
interfaces.Interface that provides semantics of aIterator
andAutoCloseable
interfaces.A collection that defines an iterator method that returns aCloseableIterator
instead of a non closeable one.AdaptsCollection
toCloseableIteratorCollection
A set that defines an iterator method that returns aCloseableIterator
instead of a non closeable one.AdaptsSet
toCloseableIteratorSet
This class consists exclusively of static methods that operate on or return closeable interfaces.Interface that provides semantics of aSpliterator
andAutoCloseable
interfaces.Iterator that concatenates a bunch of iterables into 1 big iterator.Either<A,B> EntrySizeCalculator<K,V> An Enumeration → List adaptorUtilities method to Enums.EvictionListener<K,V> Deprecated, for removal: This API element is subject to removal in a future version.since 10.0 - This class is not used internally anymoreAn experimental user-facing API.FastCopyHashMap<K,V> A HashMap that is optimized for fast shallow copies.Features allow conditional enabling/disabling of Infinispan's functionality.Iterator that also filters out entries based on the provided predicate.Spliterator that only returns entries that pass the given predicate.Composes an array of Collections into a spliterator.A list which forwards all its method calls to another list.Utility functions for globsHopscotchHashMap<K,V> Lookup on a table without collisions will require only single access, if there are collisions it will be limited to (number of collisions to particular bin + 1) and all those will lie in proximity (32 * reference size).Wrap aHopscotchHashMap
and allow using it as aSet
.Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 This class will no longer be public, please useIntSets.immutableSet(IntSet)
A lightweight, read-only copy of a List.Factory for generating immutable type wrappers.Static helpers for Infinispan-specific collectionsA function that converts a type into another one.A function that converts an entry into a key/value pair for use in a map.InjectiveFunction<T,R> This is a marker interface to be used withFunction
which signals to some implementors that the function returns distinct values.A set that represents primitive ints.Static utility class for creating variousIntSet
objects.IntSets externalization mechanismIteratorMapper<E,S> A iterator that maps each value to the output of the Function.KeyValueWithPrevious<K,V> WARNING: Generated code! Do not edit!A wrapper around system properties that supports legacy keysDeprecated, for removal: This API element is subject to removal in a future version.since 11.0, useByteQuantity
instead.BloomFilter implementation that allows for up to 10 hash functions all using MurmurHash3 with different seeds.A placeholder for null in a cache, because caches do not allow null values.WARNING: Generated code! Do not edit!Deprecated, for removal: This API element is subject to removal in a future version.Since 12, will be removed in version 15.0Operating system family.PeekableMap<K,V> Deprecated, for removal: This API element is subject to removal in a future version.since 11.0 with no replacement - no longer usedProvides general information about the processors on this host.Proxies is a collection of useful dynamic profixes.Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 This class will no longer be public.Basic reflection utilities to enhance what the JDK provides.A CloseableIterator implementation that allows for a CloseableIterator that doesn't allow remove operations to implement remove by delegating the call to the provided consumer to remove the previously read value.An Iterator implementation that allows for a Iterator that doesn't allow remove operations to implement remove by delegating the call to the provided consumer to remove the previously read value.A set that allows reverse iteration of the set elements, exposed via theReversibleOrderedSet.reverseIterator()
method.Utility methods for handling SASL authenticationEncapsulates the key and its segment.ServiceFinder is aServiceLoader
replacement which understands multiple classpaths.SimpleImmutableEntry<K,V> Where is Java 1.6?Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 This class will no longer be public.SpliteratorMapper<E,S> A spliterator that has been mapped from another spliterator.SslContextFactory.A utility class for replacing properties in strings.Type-aware properties.General utility methods used throughout the Infinispan code base.Returns the byte atindex
.Contains version information about this release of Infinispan.WeakValueHashMap<K,V> This Map will remove entries when the value in the map has been cleaned from garbage collection