Package org.infinispan.commons.util
Commons package providing various utility classes
- Public API
-
Interface Summary Interface Description CloseableIterable<E> Interface that provides semantics of aIterable
andAutoCloseable
interfaces.CloseableIterator<E> Interface that provides semantics of aIterator
andAutoCloseable
interfaces.CloseableIteratorCollection<E> A collection that defines an iterator method that returns aCloseableIterator
instead of a non closeable one.CloseableIteratorSet<E> A set that defines an iterator method that returns aCloseableIterator
instead of a non closeable one.CloseableSpliterator<T> Interface that provides semantics of aSpliterator
andAutoCloseable
interfaces.EntrySizeCalculator<K,V> EvictionListener<K,V> Deprecated. since 10.0 - This class is not used internally anymoreFileLookup Immutables.Immutable InfinispanCollections.Function<E,T> A function that converts a type into another one.InfinispanCollections.MapMakerFunction<K,V,E> 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.IntSet A set that represents primitive ints.PeekableMap<K,V> Deprecated. since 11.0 with no replacement - no longer usedReversibleOrderedSet<E> A set that allows reverse iteration of the set elements, exposed via theReversibleOrderedSet.reverseIterator()
method.Util.ByteGetter Returns the byte atindex
.WeakValueHashMap.ValueRef<K,V> -
Class Summary Class Description AbstractDelegatingCollection<E> Delegating collection that delegates all calls to the collection returned fromAbstractDelegatingCollection.delegate()
AbstractDelegatingConcurrentMap<K,V> AbstractDelegatingMap<K,V> AbstractDelegatingSet<E> AbstractEntrySizeCalculatorHelper<K,V> 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.AbstractFileLookup AbstractIterator<E> 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.AbstractMap.SimpleEntry<K,V> AggregatedClassLoader A ClassLoader that delegates loading of classes and resources to a list of delegate ClassLoaders.ArrayCollector ArrayMap<K,V> Base for classes that implement hash map by storing keys in one array and values in another.BeanUtils Simple JavaBean manipulation helper methodsBloomFilter<E> ByRef<T> This class can be used to pass an argument by reference.ByRef.Boolean Implementation for primitive typeByRef.Integer ByRef.Long ByteQuantity Parser human-readable quantity of bytes.ClassFinder Find infinispan classes utilityClasspathURLStreamHandler AURLStreamHandlerFactory
which can handle classpath: URI schemes.CloseableIteratorCollectionAdapter<E> AdaptsCollection
toCloseableIteratorCollection
CloseableIteratorSetAdapter<E> AdaptsSet
toCloseableIteratorSet
Closeables This class consists exclusively of static methods that operate on or return closeable interfaces.ConcatIterator<E> Iterator that concatenates a bunch of iterables into 1 big iterator.Either<A,B> EnumerationList<T> An Enumeration → List adaptorEnumUtil Utilities method to Enums.FastCopyHashMap<K,V> A HashMap that is optimized for fast shallow copies.Features Features allow conditional enabling/disabling of Infinispan's functionality.FileLookupFactory FileLookupFactory.DefaultFileLookup FilterIterator<E> Iterator that also filters out entries based on the provided predicate.FilterSpliterator<T> Spliterator that only returns entries that pass the given predicate.FlattenSpliterator<E> Composes an array of Collections into a spliterator.ForwardingList<E> A list which forwards all its method calls to another list.GlobUtils 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).ImmutableHopscotchHashSet<E> Wrap aHopscotchHashMap
and allow using it as aSet
.ImmutableIntSet Deprecated. since 9.3 This class will no longer be public, please useIntSets.immutableSet(IntSet)
ImmutableListCopy<E> A lightweight, read-only copy of a List.ImmutableListCopy.Externalizer Immutables Factory for generating immutable type wrappers.Immutables.ImmutableIteratorWrapper<E> Immutables.ImmutableMapWrapperExternalizer Immutables.ImmutableSetWrapperExternalizer InfinispanCollections Static helpers for Infinispan-specific collectionsInstanceSupplier<T> IntSets Static utility class for creating variousIntSet
objects.IntSetsExternalization IntSets externalization mechanismIteratorMapper<E,S> A iterator that maps each value to the output of the Function.JVMMemoryInfoInfo KeyValueWithPrevious<K,V> KeyValueWithPrevious$___Marshaller_9145896a24b67e12a03ab245b027743214e8f0a00cff4e94594e6701c8f07ff1 WARNING: Generated code! Do not edit!LegacyKeySupportSystemProperties A wrapper around system properties that supports legacy keysMurmurHash3BloomFilter BloomFilter implementation that allows for up to 10 hash functions all using MurmurHash3 with different seeds.NullValue A placeholder for null in a cache, because caches do not allow null values.NullValue$___Marshaller_a83283d4dbbe8b8520f457699d99f19344b973d04786829de1e22c08915e6e56 WARNING: Generated code! Do not edit!ObjectDuplicator Deprecated. Since 12, will be removed in version 15.0ProcessorInfo Provides general information about the processors on this host.Proxies Proxies is a collection of useful dynamic profixes.RangeSet Deprecated. since 9.3 This class will no longer be public.ReflectionUtil Basic reflection utilities to enhance what the JDK provides.RemovableCloseableIterator<C> 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.RemovableIterator<C> 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.SaslUtils Utility methods for handling SASL authenticationSegmentAwareKey<K> Encapsulates the key and its segment.ServiceFinder ServiceFinder is aServiceLoader
replacement which understands multiple classpaths.SimpleImmutableEntry<K,V> Where is Java 1.6?SmallIntSet Deprecated. since 9.3 This class will no longer be public.SpliteratorMapper<E,S> A spliterator that has been mapped from another spliterator.SslContextFactory SslContextFactory.StringPropertyReplacer A utility class for replacing properties in strings.TypedProperties Type-aware properties.Util General utility methods used throughout the Infinispan code base.Version 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 -
Enum Summary Enum Description Either.Type MemoryUnit Deprecated. since 11.0, useByteQuantity
instead.OS Operating system family. -
Annotation Types Summary Annotation Type Description Experimental An experimental user-facing API.