## php.java.bridge
Class ConstructorCache

    java.lang.Object
      php.java.bridge.ConstructorCache

    public class ConstructorCache

extends java.lang.Object

Cache [(method, parameters) -> Method] mappings. No synchronization, so use this class per thread or per request only.

Nested Class Summary
`static class` `ConstructorCache.Entry` A cache entry carrying the method name and the parameters

Constructor Summary
`ConstructorCache()`

Method Summary
`java.lang.reflect.Constructor` `get(ConstructorCache.Entry entry)` Get the constructor for the entry
`ConstructorCache.Entry` `getEntry(java.lang.String name, java.lang.Object[] args)` Get a cache entry from a name args pair
`void` `put(ConstructorCache.Entry entry, java.lang.reflect.Constructor method)` Store a constructor with an entry

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ConstructorCache

    public ConstructorCache()

Method Detail

### get

    public java.lang.reflect.Constructor get(ConstructorCache.Entry entry)

  Get the constructor for the entry

  Parameters:
    `entry` - The entry
  Returns:
    The constructor

### put

    public void put(ConstructorCache.Entry entry,
                    java.lang.reflect.Constructor method)

  Store a constructor with an entry

  Parameters:
    `entry` - The cache entry
    `method` - The constructor

### getEntry

    public ConstructorCache.Entry getEntry(java.lang.String name,
                                           java.lang.Object[] args)

  Get a cache entry from a name args pair

  Parameters:
    `name` - The constructor name
    `args` - The arguments
  Returns:
    A cache entry.