public class CachedMethodKey
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
The method name.
|
| Constructor and Description |
|---|
CachedMethodKey(java.lang.String name,
java.lang.Class<?>... arguments)
Constructor.
|
CachedMethodKey(java.lang.String name,
java.lang.Class<?> arg)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Class<?>[] |
getArgumentTypes()
Return the argument types.
|
java.lang.String |
getName()
Return the method name
|
int |
hashCode() |
boolean |
isCompatible(CachedMethodKey key)
Return true if the key is compatible with another key.
|
boolean |
maybeDefault()
Return true if all the arguments of the method are Object. it will return false if there are no arguments.
|
java.lang.String |
toString() |
public CachedMethodKey(java.lang.String name,
java.lang.Class<?>... arguments)
name - the method namearguments - the argument typespublic CachedMethodKey(java.lang.String name,
java.lang.Class<?> arg)
name - the method namearg - the argument typepublic java.lang.String getName()
public java.lang.Class<?>[] getArgumentTypes()
public boolean maybeDefault()
public boolean isCompatible(CachedMethodKey key)
key - the other keypublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2019-2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence