Package org.infinispan.util
Class CoreImmutables
- java.lang.Object
-
- org.infinispan.commons.util.Immutables
-
- org.infinispan.util.CoreImmutables
-
public class CoreImmutables extends Immutables
Factory for generating immutable type wrappers for core types.- Since:
- 4.0
- Author:
- Jason T. Greene, Galder ZamarreƱo, Tristan Tarrant
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.infinispan.commons.util.Immutables
Immutables.Immutable, Immutables.ImmutableIteratorWrapper<E>, Immutables.ImmutableMapWrapperExternalizer, Immutables.ImmutableSetWrapperExternalizer
-
-
Constructor Summary
Constructors Constructor Description CoreImmutables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <K,V>
InternalCacheEntry<K,V>immutableInternalCacheEntry(InternalCacheEntry<K,V> entry)
Wraps aInternalCacheEntry
} with an immutableInternalCacheEntry
}.-
Methods inherited from class org.infinispan.commons.util.Immutables
immutableCollectionCopy, immutableCollectionWrap, immutableEntry, immutableEntry, immutableListAdd, immutableListConvert, immutableListCopy, immutableListMerge, immutableListRemove, immutableListReplace, immutableListWrap, immutableMapCopy, immutableMapWrap, immutableSetConvert, immutableSetCopy, immutableSetWrap, immutableTypedProperties, isImmutable
-
-
-
-
Method Detail
-
immutableInternalCacheEntry
public static <K,V> InternalCacheEntry<K,V> immutableInternalCacheEntry(InternalCacheEntry<K,V> entry)
Wraps aInternalCacheEntry
} with an immutableInternalCacheEntry
}. There is no copying involved.- Parameters:
entry
- the internal cache entry to wrap.- Returns:
- an immutable
InternalCacheEntry
} wrapper that delegates to the original entry.
-
-