public class ExperimenterHint extends AbstractHint
Hint
.
Experimenters may use this class as is, defining their own hint types (using negative integers), and payloads. Alternatively, they may extend this class to provide a richer API on the subclass, tailored to specific payloads.
Modifier and Type | Class and Description |
---|---|
static interface |
ExperimenterHint.Payload
A tag interface to allow the hint payload to be expressed in general
terms.
|
Modifier and Type | Field and Description |
---|---|
static String |
E_NON_NEGATIVE_TYPE |
Constructor and Description |
---|
ExperimenterHint(int experType,
ExperimenterHint.Payload payload)
Constructs an experimenter hint, using the given experimenter-defined
type and payload.
|
Modifier and Type | Method and Description |
---|---|
ExperimenterHint.Payload |
getPayload()
Returns the payload.
|
String |
toString() |
getEncodedType, getType
public static final String E_NON_NEGATIVE_TYPE
public ExperimenterHint(int experType, ExperimenterHint.Payload payload)
standard
hint types.experType
- the experimenter-defined hint typepayload
- the hint payloadIllegalArgumentException
- if experType is not negativepublic String toString()
toString
in class AbstractHint
public ExperimenterHint.Payload getPayload()
Copyright © 2016. All Rights Reserved.