abstract class TransformingCache[K, U, V] extends ForwardingObject with google.common.cache.Cache[K, V]
Similar to com.google.common.cache.ForwardingCache
but with key transformation using the
injective function #transformKey(K)
from K
to U
.
This cache won't be able to return original keys, hence #getAllPresent(Iterable)
and
#asMap()
both throw an UnsupportedOperationException
.
- Source
- TransformingCache.java
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TransformingCache
- Cache
- ForwardingObject
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new TransformingCache()
Abstract Value Members
- abstract def delegate(): google.common.cache.Cache[U, V]
- Attributes
- protected[util]
- Definition Classes
- TransformingCache → ForwardingObject
- abstract def transformKey(key: K): U
- Attributes
- protected[util]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asMap(): ConcurrentMap[K, V]
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def cleanUp(): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get(key: K, loader: Callable[_ <: V]): V
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def getAllPresent(keys: Iterable[_ <: AnyRef]): ImmutableMap[K, V]
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getIfPresent(key: AnyRef): V
- Definition Classes
- TransformingCache → Cache
- Annotations
- @CheckForNull() @Override() @SuppressWarnings()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def invalidate(key: AnyRef): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override() @SuppressWarnings()
- def invalidateAll(): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def invalidateAll(keys: Iterable[_ <: AnyRef]): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def put(key: K, value: V): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def putAll(m: Map[_ <: K, _ <: V]): Unit
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def size(): Long
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- def stats(): CacheStats
- Definition Classes
- TransformingCache → Cache
- Annotations
- @Override()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ForwardingObject → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()