A C D E F G H I K L M O P R S T W 

A

add(K, V) - Method in class org.jvnet.hk2.component.MultiMap
Adds one more key-value pair.
addMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Adds a value to the list of values associated with this key
array(Object[]) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Returns a pretty string for the given array

C

Cache<K,V> - Class in org.glassfish.hk2.utilities.cache
Cache implementation that relies on FutureTask.
Cache(Computable<K, V>) - Constructor for class org.glassfish.hk2.utilities.cache.Cache
Create new cache with given computable to compute values.
Cache(Computable<K, V>, Cache.CycleHandler<K>) - Constructor for class org.glassfish.hk2.utilities.cache.Cache
Create new cache with given computable and cycle handler.
Cache.CycleHandler<K> - Interface in org.glassfish.hk2.utilities.cache
Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.
CacheEntry - Interface in org.glassfish.hk2.utilities.cache
This can be used to remove a specific cache entry from the cache, for better control of the caching release semantics
CacheKeyFilter<K> - Interface in org.glassfish.hk2.utilities.cache
This is used by the cache to remove a series of entries that match this filter
clazz(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Makes a nice, pretty class (without the package name)
clear() - Method in class org.glassfish.hk2.utilities.cache.Cache
Empty cache.
clear() - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
Empty the cache.
clone() - Method in class org.jvnet.hk2.component.MultiMap
Creates a copy of the map that contains the exact same key and value set.
collection(Collection<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Returns a pretty string representing the collection
Computable<K,V> - Interface in org.glassfish.hk2.utilities.cache
Utility interface to capture generic computation of type V from type K.
compute(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
 
compute(K) - Method in interface org.glassfish.hk2.utilities.cache.Computable
Defines an expensive computation to retrieve value V from key K.
compute(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
 
constructor(Constructor<?>) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Make a nice pretty string out of the constructor and all its parameters
contains(K, V) - Method in class org.jvnet.hk2.component.MultiMap
Checks if the map contains the given key(s), also extending the search to including the sub collection.
containsKey(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
Returns true if the key has already been cached.
containsKey(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
Returns true if the key has already been cached.
containsKey(K) - Method in class org.jvnet.hk2.component.MultiMap
Checks if the map contains the given key.
createCache(int) - Static method in class org.glassfish.hk2.utilities.cache.LRUCache
Creates a cache with the given maximum cache size
createCacheEntry(K, V, boolean) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
Create cache entry for given values.

D

debug(String) - Method in class org.glassfish.hk2.utilities.reflection.Logger
Sends this message to the Debug channel (FINER level in JDK parlance)
debug(String, String, Throwable) - Method in class org.glassfish.hk2.utilities.reflection.Logger
Sends this message to the Debug channel (FINER level in JDK parlance)
deepCopyMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
This method does a deep copy of the incoming meta-data, (which basically means we will also make copies of the value list)
dropMe() - Method in interface org.glassfish.hk2.utilities.cache.HybridCacheEntry
Tell the cache if this entry should be dropped as opposed to being kept in the cache.

E

entrySet() - Method in class org.jvnet.hk2.component.MultiMap
Lists up all entries.
equals(Object) - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
equals(Object) - Method in class org.jvnet.hk2.component.MultiMap
 

F

field(Field) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Returns a pretty string representing a Field

G

get(K) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
 
get(K) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
Returns the value associated with the given key.
get(K) - Method in class org.jvnet.hk2.component.MultiMap
Returns the elements indexed by the provided key
getActualTypeArguments() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
getAdvertisedTypesFromClass(Type, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the set of types this class advertises
getAdvertisedTypesFromObject(Object, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the set of types this class advertises
getContractsFromClass(Class<?>, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the set of types this class advertises
getLogger() - Static method in class org.glassfish.hk2.utilities.reflection.Logger
Gets the singleton instance of the Logger
getMaxCacheSize() - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
 
getMaxCacheSize() - Method in class org.glassfish.hk2.utilities.cache.LRUCache
Returns the maximum number of entries that will be stored in this cache
getName(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the name that should be associated with this class
getNameFromAllQualifiers(Set<Annotation>, AnnotatedElement) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets the name from the &46;Named qualifier in this set of qualifiers
getOne(K) - Method in class org.jvnet.hk2.component.MultiMap
Gets the first value if any, or null.
getOwnerType() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
getQualifierAnnotations(AnnotatedElement) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets all the qualifier annotations from the object
getQualifiersFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets all the qualifiers from the object
getQualifiersFromObject(Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets all the qualifiers from the object
getRawClass(Type) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Given the type parameter gets the raw type represented by the type, or null if this has no associated raw class
getRawType() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
getScopeAnnotationFromClass(Class<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets the scope annotation from the object
getScopeAnnotationFromObject(Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets the scope annotation from the object
getScopeFromClass(Class<?>, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets the scope annotation from the object
getScopeFromObject(Object, Class<? extends Annotation>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Gets the scope annotation from the object
getTypeClosure(Type, Set<String>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns the type closure, as restricted by the classes listed in the set of contracts implemented
getValue() - Method in interface org.glassfish.hk2.utilities.cache.HybridCacheEntry
Getter for this cache entry internal value.

H

handleCycle(K) - Method in interface org.glassfish.hk2.utilities.cache.Cache.CycleHandler
Handle cycle that was detected while computing a cache value for given key.
handleCycle(K) - Method in interface org.glassfish.hk2.utilities.cache.LRUHybridCache.CycleHandler
Handle cycle that was detected while computing a cache value for given key.
hashCode() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
hashCode() - Method in class org.jvnet.hk2.component.MultiMap
 
HybridCacheEntry<V> - Interface in org.glassfish.hk2.utilities.cache
Represents a single hybrid cache entry.

I

invoke(Object, Method, Object[], boolean) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
This version of invoke is CCL neutral (it will return with the same CCL as what it went in with)
isAnnotationAQualifier(Annotation) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns true if the given annotation is a qualifier
isStatic(Member) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Returns true if the underlying member is static

K

keySet() - Method in class org.jvnet.hk2.component.MultiMap
Returns the set of keys associated with this MultiMap

L

Logger - Class in org.glassfish.hk2.utilities.reflection
A logger for HK2.
LRUCache<K,V> - Class in org.glassfish.hk2.utilities.cache
A cache that contains a certain number of entries, and whose oldest accessed entries are removed when removal is necessary.
LRUCache() - Constructor for class org.glassfish.hk2.utilities.cache.LRUCache
 
LRUCacheCheapRead<K,V> - Class in org.glassfish.hk2.utilities.cache.internal
LRU Cache implementation that relies on entries that keep last hit (get/put) timestamp in order to be able to remove least recently accessed items when running out of cache capacity.
LRUCacheCheapRead(int) - Constructor for class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
Create new cache with given maximum capacity.
LRUHybridCache<K,V> - Class in org.glassfish.hk2.utilities.cache
Hybrid cache that allows explicit removals of included entries as well as implicit removal of entries that have been least recently accessed.
LRUHybridCache(int, Computable<K, HybridCacheEntry<V>>) - Constructor for class org.glassfish.hk2.utilities.cache.LRUHybridCache
Create new cache with given computable to compute values.
LRUHybridCache(int, Computable<K, HybridCacheEntry<V>>, LRUHybridCache.CycleHandler<K>) - Constructor for class org.glassfish.hk2.utilities.cache.LRUHybridCache
Create new cache with given computable and cycleHandler.
LRUHybridCache.CycleHandler<K> - Interface in org.glassfish.hk2.utilities.cache
Should a cycle be detected during computation of a value for given key, this interface allows client code to register a callback that would get invoked in such a case.

M

makeMe(Constructor<?>, Object[], boolean) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
This version of invoke is CCL neutral (it will return with the same CCL as what it went in with)
matches(K) - Method in interface org.glassfish.hk2.utilities.cache.CacheKeyFilter
Returns true if the key matches the filter
mergeAll(MultiMap<K, V>) - Method in class org.jvnet.hk2.component.MultiMap
This method merges all of the keys and values from another MultiMap into this MultiMap.
method(Method) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Makes a nice pretty string of the method, with the method name and all parameters
MultiMap<K,V> - Class in org.jvnet.hk2.component
Map from a key to multiple values.
MultiMap() - Constructor for class org.jvnet.hk2.component.MultiMap
Creates an empty multi-map with default concurrency controls
MultiMap(MultiMap<K, V>) - Constructor for class org.jvnet.hk2.component.MultiMap
Copy constructor.

O

org.glassfish.hk2.utilities.cache - package org.glassfish.hk2.utilities.cache
 
org.glassfish.hk2.utilities.cache.internal - package org.glassfish.hk2.utilities.cache.internal
 
org.glassfish.hk2.utilities.reflection - package org.glassfish.hk2.utilities.reflection
 
org.jvnet.hk2.component - package org.jvnet.hk2.component
 

P

ParameterizedTypeImpl - Class in org.glassfish.hk2.utilities.reflection
 
ParameterizedTypeImpl(Type, Type...) - Constructor for class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
A new parameterized type
parseServiceMetadataString(String, Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
This method parses the string that is found in the VService metadata field.
Pretty - Class in org.glassfish.hk2.utilities.reflection
 
Pretty() - Constructor for class org.glassfish.hk2.utilities.reflection.Pretty
 
printThrowable(Throwable) - Static method in class org.glassfish.hk2.utilities.reflection.Logger
Prints a throwable to stdout
pType(ParameterizedType) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Prints a pretty parameterized type
put(K, V) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
 
put(K, V) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
Adds the given key and value pair into the cache

R

readMetadataMap(String, Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Writes a set in a way that can be read from an input stream as well
readSet(String, Collection<String>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Writes a set in a way that can be read from an input stream as well.
ReflectionHelper - Class in org.glassfish.hk2.utilities.reflection
 
ReflectionHelper() - Constructor for class org.glassfish.hk2.utilities.reflection.ReflectionHelper
 
releaseCache() - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
 
releaseCache() - Method in class org.glassfish.hk2.utilities.cache.LRUCache
Clears all entries in the cache, for use when a known event makes the cache incorrect
releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.internal.LRUCacheCheapRead
 
releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.LRUCache
This method will remove all cache entries for which this filter matches
releaseMatching(CacheKeyFilter<K>) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
This method will remove all cache entries for which this filter matches
remove(K) - Method in class org.glassfish.hk2.utilities.cache.Cache
Remove item from the cache.
remove(K) - Method in class org.glassfish.hk2.utilities.cache.LRUHybridCache
Remove given item from the cache.
remove(K) - Method in class org.jvnet.hk2.component.MultiMap
Removes an key value from the map
remove(K, V) - Method in class org.jvnet.hk2.component.MultiMap
Removes an key value pair from the map.
removeAllMetadata(Map<String, List<String>>, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Removes all the metadata values associated with key
removeFromCache() - Method in interface org.glassfish.hk2.utilities.cache.CacheEntry
Call this method on this entry to remove it from the LRUCache.
removeMetadata(Map<String, List<String>>, String, String) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Removes the given value from the given key

S

set(K, Collection<? extends V>) - Method in class org.jvnet.hk2.component.MultiMap
Replaces all the existing values associated with the key by the given value.
set(K, V) - Method in class org.jvnet.hk2.component.MultiMap
Replaces all the existing values associated with the key by the given single value.
setField(Field, Object, Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Sets the given field to the given value
size() - Method in class org.jvnet.hk2.component.MultiMap
Returns the size of the map.

T

toCommaSeparatedString() - Method in class org.jvnet.hk2.component.MultiMap
 
toString() - Method in class org.glassfish.hk2.utilities.reflection.ParameterizedTypeImpl
 
toString() - Method in class org.jvnet.hk2.component.MultiMap
 
type(Type) - Static method in class org.glassfish.hk2.utilities.reflection.Pretty
Returns a pretty string for the given type

W

warning(String) - Method in class org.glassfish.hk2.utilities.reflection.Logger
Sends this message to the Debug channel (FINER level in JDK parlance)
writeMetadata(Map<String, List<String>>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Used to write the metadata out
writeSet(Set<?>) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Writes a set in a way that can be read from an input stream as well
writeSet(Set<?>, Object) - Static method in class org.glassfish.hk2.utilities.reflection.ReflectionHelper
Writes a set in a way that can be read from an input stream as well
A C D E F G H I K L M O P R S T W 

Copyright © 2009-2014 Oracle Corporation. All Rights Reserved.