@Immutable public final class InterestType extends Object
Modifier and Type | Field and Description |
---|---|
static InterestType |
KEY
For registering interest in a specific key.
|
static InterestType |
LIST
For registering interest in a list of keys.
|
static InterestType |
REGULAR_EXPRESSION
For registering interest in all keys matching a regular expression.
|
static byte |
TP_KEY |
static byte |
TP_LIST |
static byte |
TP_REGEX |
Modifier and Type | Method and Description |
---|---|
static InterestType |
fromOrdinal(byte ordinal)
Returns the
InterestType represented by specified ordinal. |
boolean |
isKey()
Returns true if this is a key interest type.
|
boolean |
isList()
Returns true if this is a key list interest type.
|
boolean |
isRegularExpression()
Returns true if this is a regular expression interest type.
|
byte |
toOrdinal()
Returns the ordinal for this interest type.
|
String |
toString()
Returns a string representation for this interest type.
|
public static final byte TP_KEY
public static final byte TP_REGEX
public static final byte TP_LIST
@Immutable public static final InterestType KEY
@Immutable public static final InterestType LIST
@Immutable public static final InterestType REGULAR_EXPRESSION
public boolean isKey()
public boolean isList()
public boolean isRegularExpression()
public static InterestType fromOrdinal(byte ordinal)
InterestType
represented by specified ordinal.ordinal
- the ordinal of the InterestType
to returnInterestType
represented by specified ordinalpublic byte toOrdinal()