- lock
Gets a lock for the entry at the given key and returns a handler to be used by
the caller for unlock
- peek
Returns the calculated value.
- <init>
Creates a new cache using the given initial capacity and cost limit. The initial
capacity is the exp
- size
Returns the number of elements in this cache. The count includes values keep by
strong, SoftReferenc
- containsKey
Returns true if this map contains the specified key.
- cost
Computes an estimation of the cost of the given value. The default
implementation returns 1 in all c
- ensureValidType
Ensures that the given value is not an instance of a reserved type.
- entrySet
Returns the set of entries in this cache. The returned set is subjects to the
same caution than the
- get
Returns the value associated to the given key in the cache. This method is
similar to #peek except t
- immediateValueOf
Returns the value of the given object if it is not under computation. This
method is similar to #val
- isEmpty
Returns true if this cache is empty.
- isKeyCollisionAllowed
Returns true if different values may be assigned to the same key. The default
value is false.