|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectshohaku.core.helpers.HSeek
集合や複数のオブジェクトから、要素を探索するヘルパーメソッド群を提供します。
コンストラクタの概要 | |
HSeek()
|
メソッドの概要 | |
static int |
count(java.util.Collection c,
java.lang.Object o)
指定の値と一致するコレクションの要素のカウント数を返却します。 |
static int |
indexOf(boolean[] a,
int fromIndex,
int toIndex,
boolean search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(byte[] a,
int fromIndex,
int toIndex,
byte search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(char[] a,
int fromIndex,
int toIndex,
char search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(java.lang.CharSequence cs,
char searchChar,
int count)
文字シーケンス内の指定の文字と一致する文字を検索してそのインデックスを返します。 |
static int |
indexOf(java.lang.CharSequence cs,
java.lang.CharSequence searchChars,
int count)
文字シーケンス内の指定の文字と一致する文字シーケンスを検索してその開始位置のインデックスを返します。 |
static int |
indexOf(java.lang.CharSequence cs,
int fromIndex,
char searchChar,
int count)
文字シーケンス内の指定の文字と一致する文字を指定の開始位置から検索してそのインデックスを返します。 |
static int |
indexOf(java.lang.CharSequence cs,
int fromIndex,
java.lang.CharSequence searchChars,
int count)
文字シーケンス内の指定の文字と一致する文字シーケンスを指定の開始位置から検索してその開始位置のインデックスを返します。 |
static int |
indexOf(java.lang.CharSequence cs,
int fromIndex,
int toIndex,
char searchChar,
int count)
文字シーケンス内の指定の文字と一致する文字を指定の開始位置と終了位置の間を検索してそのインデックスを返します。 |
static int |
indexOf(java.lang.CharSequence cs,
int fromIndex,
int toIndex,
java.lang.CharSequence searchChars,
int count)
文字シーケンス内の指定の文字と一致する文字シーケンスを指定の開始位置と終了位置の間を検索してその開始位置のインデックスを返します。 |
static int |
indexOf(double[] a,
int fromIndex,
int toIndex,
double search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(float[] a,
int fromIndex,
int toIndex,
float search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(int[] a,
int fromIndex,
int toIndex,
int search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(java.util.List list,
int fromIndex,
int toIndex,
java.lang.Object search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(long[] a,
int fromIndex,
int toIndex,
long search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(java.lang.Object[] a,
int fromIndex,
int toIndex,
java.lang.Object search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static int |
indexOf(short[] a,
int fromIndex,
int toIndex,
short search,
int count)
指定された値と同値の要素を開始位置から終了位置まで線形検索しそのインデックスを返却します。 |
static java.lang.String |
notBlank(java.lang.String e,
java.lang.String e2)
空白文字列では無い引数を引数順の優先順位で返却します。 |
static java.lang.String |
notBlank(java.lang.String e,
java.lang.String e2,
java.lang.String e3)
空白文字列では無い引数を引数順の優先順位で返却します。 |
static java.lang.String |
notEmpty(java.lang.String e,
java.lang.String e2)
空文字列では無い引数を引数順の優先順位で返却します。 |
static java.lang.String |
notEmpty(java.lang.String e,
java.lang.String e2,
java.lang.String e3)
空文字列では無い引数を引数順の優先順位で返却します。 |
static java.lang.Object |
notNull(java.lang.Object e,
java.lang.Object e2)
null では無い引数を引数順の優先順位で返却します。 |
static java.lang.Object |
notNull(java.lang.Object e,
java.lang.Object e2,
java.lang.Object e3)
null では無い引数を引数順の優先順位で返却します。 |
static int |
orIndexOf(java.lang.CharSequence cs,
char[] searchChars,
int count)
文字シーケンス内の指定の文字の何れかと一致する文字を検索してそのインデックスを返します。 |
static int |
orIndexOf(java.lang.CharSequence cs,
int fromIndex,
char[] searchChars,
int count)
文字シーケンス内の指定の文字の何れかと一致する文字を指定の開始位置から検索してそのインデックスを返します。 |
static int |
orIndexOf(java.lang.CharSequence cs,
int fromIndex,
int toIndex,
char[] searchChars,
int count)
文字シーケンス内の指定の文字の何れかと一致する文字を指定の開始位置と終了位置の間を検索してそのインデックスを返します。 |
static int |
orOtherIndexOf(java.lang.CharSequence cs,
char[] searchChars,
int count)
文字シーケンス内の、指定の文字以外の何れかと一致する文字を検索してそのインデックスを返します。 |
static int |
orOtherIndexOf(java.lang.CharSequence cs,
int fromIndex,
char[] searchChars,
int count)
文字シーケンス内の開始位置から、指定の文字以外の何れかと一致する文字を検索してそのインデックスを返します。 |
static int |
orOtherIndexOf(java.lang.CharSequence cs,
int fromIndex,
int toIndex,
char[] searchChars,
int count)
文字シーケンス内の開始位置と終了位置の範囲で、指定の文字以外の何れかと一致する文字を検索してそのインデックスを返します。 |
static int |
skip(java.lang.CharSequence cs,
char[] chars,
int fromIndex)
引数に一致する文字をスキップしたインデックスを返却します。 |
static int |
skip(java.lang.CharSequence cs,
char c,
int fromIndex)
引数に一致する文字をスキップしたインデックスを返却します。 |
static int |
skip(java.lang.CharSequence cs,
java.lang.CharSequence chars,
int fromIndex)
引数に一致する文字列をスキップしたインデックスを返却します。 |
static int |
skip(java.lang.CharSequence cs,
RangeInt[] ranges,
int fromIndex)
引数に一致する文字をスキップしたインデックスを返却します。 |
static int |
skip(java.lang.CharSequence cs,
RangeInt range,
int fromIndex)
引数に一致する文字をスキップしたインデックスを返却します。 |
static int |
skipGreater(java.lang.CharSequence cs,
int c,
int fromIndex)
引数により大きい文字をスキップしたインデックスを返却します。 |
static int |
skipLess(java.lang.CharSequence cs,
int c,
int fromIndex)
引数により小さい文字をスキップしたインデックスを返却します。 |
static int |
skipSp(java.lang.CharSequence cs,
int fromIndex)
空白文字をスキップしたインデックスを返却します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public HSeek()
メソッドの詳細 |
public static java.lang.Object notNull(java.lang.Object e, java.lang.Object e2)
e
- 第一要素e2
- 第二要素
public static java.lang.Object notNull(java.lang.Object e, java.lang.Object e2, java.lang.Object e3)
e
- 第一要素e2
- 第二要素e3
- 第三要素
public static java.lang.String notEmpty(java.lang.String e, java.lang.String e2)
e
- 第一要素e2
- 第二要素
public static java.lang.String notEmpty(java.lang.String e, java.lang.String e2, java.lang.String e3)
e
- 第一要素e2
- 第二要素e3
- 第三要素
public static java.lang.String notBlank(java.lang.String e, java.lang.String e2)
e
- 第一要素e2
- 第二要素
public static java.lang.String notBlank(java.lang.String e, java.lang.String e2, java.lang.String e3)
e
- 第一要素e2
- 第二要素e3
- 第三要素
public static int skip(java.lang.CharSequence cs, RangeInt range, int fromIndex)
cs
- 文字シーケンスrange
- スキップ対象の文字の範囲fromIndex
- 探索の開始位置
public static int skip(java.lang.CharSequence cs, RangeInt[] ranges, int fromIndex)
cs
- 文字シーケンスranges
- スキップ対象の文字の範囲fromIndex
- 探索の開始位置
public static int skip(java.lang.CharSequence cs, char c, int fromIndex)
cs
- 文字シーケンスc
- スキップ対象の文字fromIndex
- 探索の開始位置
public static int skipGreater(java.lang.CharSequence cs, int c, int fromIndex)
cs
- 文字シーケンスc
- スキップ対象の文字fromIndex
- 探索の開始位置
public static int skipLess(java.lang.CharSequence cs, int c, int fromIndex)
cs
- 文字シーケンスc
- スキップ対象の文字fromIndex
- 探索の開始位置
public static int skipSp(java.lang.CharSequence cs, int fromIndex)
cs
- 文字シーケンスfromIndex
- 探索の開始位置
public static int skip(java.lang.CharSequence cs, java.lang.CharSequence chars, int fromIndex)
cs
- 文字シーケンスchars
- スキップ対象の文字の配列fromIndex
- 探索の開始位置
public static int skip(java.lang.CharSequence cs, char[] chars, int fromIndex)
cs
- 文字シーケンスchars
- スキップ対象の文字の配列fromIndex
- 探索の開始位置
public static int count(java.util.Collection c, java.lang.Object o)
c
- 走査対象のコレクションo
- 検索する値
public static int indexOf(java.lang.CharSequence cs, char searchChar, int count)
cs
- 検索対象の文字シーケンスsearchChar
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.CharSequence cs, int fromIndex, char searchChar, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスsearchChar
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.CharSequence cs, int fromIndex, int toIndex, char searchChar, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスtoIndex
- 検索の終了位置を示すインデックスsearchChar
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orIndexOf(java.lang.CharSequence cs, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orIndexOf(java.lang.CharSequence cs, int fromIndex, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orIndexOf(java.lang.CharSequence cs, int fromIndex, int toIndex, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスtoIndex
- 検索の終了位置を示すインデックスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orOtherIndexOf(java.lang.CharSequence cs, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orOtherIndexOf(java.lang.CharSequence cs, int fromIndex, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int orOtherIndexOf(java.lang.CharSequence cs, int fromIndex, int toIndex, char[] searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスtoIndex
- 検索の終了位置を示すインデックスsearchChars
- 検索する文字count
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.CharSequence cs, java.lang.CharSequence searchChars, int count)
cs
- 検索対象の文字シーケンスsearchChars
- 検索する文字シーケンスcount
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.CharSequence cs, int fromIndex, java.lang.CharSequence searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスsearchChars
- 検索する文字シーケンスcount
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.CharSequence cs, int fromIndex, int toIndex, java.lang.CharSequence searchChars, int count)
cs
- 検索対象の文字シーケンスfromIndex
- 検索の開始位置を示すインデックスtoIndex
- 検索の終了位置を示すインデックスsearchChars
- 検索する文字シーケンスcount
- 一致する回数、負数の場合後方検索
public static int indexOf(java.util.List list, int fromIndex, int toIndex, java.lang.Object search, int count)
list
- 検索元のリストfromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(java.lang.Object[] a, int fromIndex, int toIndex, java.lang.Object search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(boolean[] a, int fromIndex, int toIndex, boolean search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(char[] a, int fromIndex, int toIndex, char search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(byte[] a, int fromIndex, int toIndex, byte search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(short[] a, int fromIndex, int toIndex, short search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(int[] a, int fromIndex, int toIndex, int search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(long[] a, int fromIndex, int toIndex, long search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(float[] a, int fromIndex, int toIndex, float search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
public static int indexOf(double[] a, int fromIndex, int toIndex, double search, int count)
a
- 検索元の配列fromIndex
- 検索の開始インデックスtoIndex
- 検索の終了インデックスsearch
- 検索する値count
- 一致する回数、負数の場合後方検索
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |