public class Context extends AbstractContext
Context
represents a single context, associated with an executor or activity, and determines either a specific
type of activity that can be executed by an executor, or vice versa. A Context
is characterized by a name,
typically a user-supplied string. A Context
includes a range, which could for instance be used to indicate
priorities or size.Constructor and Description |
---|
Context(java.lang.String name) |
Context(java.lang.String name,
long rank) |
Context(java.lang.String name,
long rangeStart,
long rangeEnd) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
Returns the context name used to construct this Context.
|
long |
getRangeEnd() |
long |
getRangeStart() |
int |
hashCode() |
java.lang.String |
toString() |
public static final Context DEFAULT
public Context(java.lang.String name, long rangeStart, long rangeEnd)
public Context(java.lang.String name, long rank)
public Context(java.lang.String name)
public java.lang.String getName()
public long getRangeStart()
public long getRangeEnd()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object