Package org.infinispan.util
Class CoreImmutables
java.lang.Object
org.infinispan.commons.util.Immutables
org.infinispan.util.CoreImmutables
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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
-
Constructor Details
-
CoreImmutables
public CoreImmutables()
-
-
Method Details
-
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.
-