public interface Flags
修飾子とタイプ | フィールドと説明 |
---|---|
static int |
BLOCK_INNER_MASK
1ブロックの内部マスク.
|
static int |
BLOCK_INNER_SHIFT
1ブロックの内部シフト長.
|
static int |
BLOCK_INNER_SIZE
1ブロックの内部配列数.
|
static int |
BLOCK_MASK
1ブロックマスク.
|
static int |
BLOCK_SHIFT
1ブロックシフト長.
|
static int |
BLOCK_SIZE
1ブロックサイズ.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
add(int no)
指定位置のフラグをON.
|
void |
addArray(int[] array)
指定位置のフラグをON.
|
void |
all()
全てのフラグをONに設定.
|
void |
clear()
管理情報をクリア.
|
void |
destroy()
情報破棄.
|
int |
get(int no)
指定位置のフラグを取得.
|
int |
getResultArray(ResultArray[] out)
検索結果情報を取得.
|
int |
getResultArray(ResultArray[] out,
int off)
検索結果情報を取得.
|
boolean |
isAnd()
Andモード取得.
|
void |
marge(Flags f)
対象の条件をマージ.
|
int |
max()
最大データ数を取得.
|
void |
set(int no,
int f)
指定位置のフラグを設定.
|
void |
setArray(int[] array,
int f)
指定位置のフラグを設定.
|
int |
size()
フラグがONの件数を取得.
|
static final int BLOCK_SHIFT
static final int BLOCK_SIZE
static final int BLOCK_MASK
static final int BLOCK_INNER_SIZE
static final int BLOCK_INNER_SHIFT
static final int BLOCK_INNER_MASK
void destroy()
void clear()
boolean isAnd()
void add(int no)
no
- 対象の項番を設定します.void addArray(int[] array)
array
- 対象の項番群を設定します.void set(int no, int f)
no
- 対象の項番を設定します.f
- フラグ条件を設定します.
[0]がOFF、[1]がONです.void setArray(int[] array, int f)
array
- 対象の項番群を設定します.f
- フラグ条件を設定します.
[0]がOFF、[1]がONです.void all()
void marge(Flags f)
f
- マージ対象のオブジェクトを設定します.int get(int no)
no
- 対照の項番を設定します.int max()
int size()
int getResultArray(ResultArray[] out)
out
- 対象のオブジェクトが設定されます.int getResultArray(ResultArray[] out, int off)
out
- 対象のオブジェクトが設定されます.off
- 対象のオフセット値を設定します.