public class Category extends BitMaskBase
History:
Modifier and Type | Field and Description |
---|---|
static int |
ADJ_BIT
Adjective bit for category
|
static int |
ADV_BIT
Adverb bit for category
|
static long |
ALL_BIT_VALUE |
static int |
AUX_BIT
Auxiliary bit for category
|
static int |
COMPL_BIT
Complementizer bit for category
|
static int |
CONJ_BIT
Conjunction bit for category
|
static int |
DET_BIT
Determiner bit for category
|
static int |
MODAL_BIT
Modal bit for category
|
static long |
NO_BIT_VALUE |
static int |
NOUN_BIT
Noun bit for category
|
static int |
PREP_BIT
Preposition bit for category
|
static int |
PRON_BIT
Pronoun bit for category
|
static int |
TOTAL_BITS
All bits for category
|
static int |
VERB_BIT
Verb bit for category
|
MASK, MAX_BIT
Constructor and Description |
---|
Category()
Creates a default category object
|
Category(long value)
Creates a default category object, using a long value
|
Modifier and Type | Method and Description |
---|---|
static long |
Enumerate(java.lang.String valueStr)
Get the long value for one single name (no combine names of bits).
|
static java.lang.String |
GetBitName(int bitValue)
Get the name (first in the name list) of a specified bit (single).
|
static java.lang.String |
GetBitName(int bitValue,
int index)
Get the name at index order of a specified bit (single).
|
static void |
main(java.lang.String[] args)
Test driver for this class
|
static java.lang.String |
ToName(long value)
Convert a long category value to a combined string (abbreviation).
|
static long |
ToValue(java.lang.String valueStr)
Convert a combined value string to a long category value.
|
static java.util.Vector<java.lang.Long> |
ToValues(long value)
Get a Vector of Long includes all values from the combined value.
|
static long[] |
ToValuesArray(long value)
Get an array includes all values from the combined value.
|
Contains, Contains, Enumerate, GetBitFlag, GetBitIndex, GetBitName, GetBitValue, GetName, GetValue, SetBitFlag, SetValue, ToName, ToValue, ToValues
public static final int ADJ_BIT
public static final int ADV_BIT
public static final int AUX_BIT
public static final int COMPL_BIT
public static final int CONJ_BIT
public static final int DET_BIT
public static final int MODAL_BIT
public static final int NOUN_BIT
public static final int PREP_BIT
public static final int PRON_BIT
public static final int VERB_BIT
public static final int TOTAL_BITS
public static final long ALL_BIT_VALUE
public static final long NO_BIT_VALUE
public Category()
public Category(long value)
value
- long value to find for bit indexpublic static long ToValue(java.lang.String valueStr)
valueStr
- combined name in String formatpublic static java.lang.String ToName(long value)
value
- number for finding it's combined namepublic static java.lang.String GetBitName(int bitValue)
bitValue
- bit nubmer for finding it's namepublic static java.lang.String GetBitName(int bitValue, int index)
bitValue
- bit nubmer for finding it's nameindex
- the order index of the name in BIT_STR[]public static long Enumerate(java.lang.String valueStr)
valueStr
- name of a bit for finding it's long valuepublic static java.util.Vector<java.lang.Long> ToValues(long value)
value
- combined valuepublic static long[] ToValuesArray(long value)
value
- combined valuepublic static void main(java.lang.String[] args)
args
- arguments