com.kenai.jaffl.provider
private static final class NativeInvocationHandler.InvokerMap extends Object
This is not a standard Map - it does not support removing or replacing of elements, just gets and insertions.
It is optimized for many-reads, minimal writes.
Constructor Summary | |
---|---|
InvokerMap(int maxEntries)
Creates a new Method->Invoker map
|
Method Summary | |
---|---|
Invoker | get(Method method)
Gets an Invoker from the map for method
|
void | put(Method method, Invoker invoker)
Creates a new mapping between a Method and an Invoker
|
Parameters: maxEntries the maximum size of the map. No more entries than this can be added.
Parameters: method the method to get an Invoker for
Returns: an Invoker if the method is in the table, else null
Parameters: method the Method to create the mapping for invoker the Invoker to associate with the method.