Package org.infinispan.commons.util
Commons package providing various utility classes
-
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> Eviction listener that is notified when entries are evicted from the underlying container due to the given eviction policy.FileLookup 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> ReversibleOrderedSet<E> A set that allows reverse iteration of the set elements, exposed via theReversibleOrderedSet.reverseIterator()
method.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.Base64 Deprecated. Not currently used internally by Infinispan; will be removed in ver.Base64.InputStream ABase64.InputStream
will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.Base64.OutputStream ABase64.OutputStream
will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.BeanUtils Simple JavaBean manipulation helper methodsBlueprintGenerator ByRef<T> This class can be used to pass an argument by reference.ByRef.Boolean Implementation for primitive typeByRef.Integer ClassFinder Find infinispan classes utilityCloseableIteratorCollectionAdapter<E> AdaptsCollection
toCloseableIteratorCollection
CloseableIteratorMapper<E,S> Deprecated. since 9.3 users can just useIteratorMapper
as it handles CloseableIterators nowCloseableIteratorSetAdapter<E> AdaptsSet
toCloseableIteratorSet
Closeables This class consists exclusively of static methods that operate on or return closeable interfaces.CloseableSpliteratorMapper<E,S> Deprecated. since 9.3 users can just useSpliteratorMapper
as it handles CloseableSpliterators nowCollectionFactory A factory for ConcurrentMaps.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.Immutables Factory for generating immutable type wrappers.Immutables.ImmutableIteratorWrapper<E> Immutables.ImmutableMapWrapperExternalizer Immutables.ImmutableSetWrapperExternalizer InfinispanCollections Static helpers for Infinispan-specific collectionsIntSets 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.KeyValueWithPrevious<K,V> KeyValueWithPrevious.KeyValueWithPreviousExternalizer LegacyKeySupportSystemProperties A wrapper around system properties that supports legacy keysObjectDuplicator A helper that efficiently duplicates known object types.OsgiClassLoader ProcessorInfo 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 authenticationServiceFinder 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.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 -
Annotation Types Summary Annotation Type Description Experimental An experimental user-facing API.