net.sf.infrared.agent.integration
Class NamedApiContext
java.lang.Object
net.sf.infrared.agent.integration.NamedApiContext
- All Implemented Interfaces:
- ApiContext
- public class NamedApiContext
- extends Object
- implements ApiContext
Implementation of a ApiContext where the extra context information is a String (name).
|
Constructor Summary |
NamedApiContext(String context)
Constructs a new NamedApiContext object with the given String as context. |
NamedApiContext
public NamedApiContext(String context)
- Constructs a new NamedApiContext object with the given String as context.
- Parameters:
context -
- Throws:
IllegalArgumentException - if context is null.
getContext
public Object getContext()
- Description copied from interface:
ApiContext
- Gets the extra context information represented by this object.
- Specified by:
getContext in interface ApiContext
- Returns:
equals
public boolean equals(Object o)
hashCode
public int hashCode()