com.opensymphony.xwork2.inject
Class Key<T>
java.lang.Object
com.opensymphony.xwork2.inject.Key<T>
class Key<T>
- extends Object
Dependency mapping key. Uniquely identified by the required type and name.
- Author:
- crazybob@google.com (Bob Lee)
type
final Class<T> type
name
final String name
hashCode
final int hashCode
Key
private Key(Class<T> type,
String name)
getType
Class<T> getType()
getName
String getName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
newInstance
static <T> Key<T> newInstance(Class<T> type,
String name)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.