net.sf.infrared.agent.integration
Class NamedApiContext

java.lang.Object
  extended bynet.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.
 
Method Summary
 boolean equals(Object o)
           
 Object getContext()
          Gets the extra context information represented by this object.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedApiContext

public NamedApiContext(String context)
Constructs a new NamedApiContext object with the given String as context.

Parameters:
context -
Throws:
IllegalArgumentException - if context is null.
Method Detail

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()