public interface ICollectionUtil
Define common Collection operations
- 導入されたバージョン:
- 1.0.0
- バージョン:
- 1.0.0
- 作成者:
- yui-KITAMURA
-
メソッドの概要
修飾子とタイプメソッド説明booleanjudge array is empty (nullor length is Zero )booleanisEmpty(Collection<?> list) judge Collection is empty<T> ArrayList<T>toArrayList(T... aryObj) Convert array toArrayList<T> List<T>toList(T... aryObj) Convert array toListArray version oftoString(Collection)toString(Collection<?> collection) Format collection instance to following format.toStringBr(Object[] array) Array version oftoStringBr(Collection)toStringBr(Collection<?> collection) Format collection instance to following format.Array version oftoStrMeta(Collection)toStrMeta(Collection<?> collection) Format collection instance to following format.toStrMetaBr(Object[] array) Array version oftoStrMetaBr(Collection)toStrMetaBr(Collection<?> collection) Format collection instance to following format.
-
メソッドの詳細
-
toList
Convert array toList- 型パラメータ:
T- Type of parameters- パラメータ:
aryObj- values array- 戻り値:
- an
Listthat contains all arguments - 関連項目:
-
toArrayList
Convert array toArrayList- 型パラメータ:
T- Type of parameters- パラメータ:
aryObj- values array- 戻り値:
- an
Listthat contains all arguments - 関連項目:
-
isEmpty
judge array is empty (nullor length is Zero )- パラメータ:
array- target- 戻り値:
- array is null or nothing in collection then
true
-
isEmpty
judge Collection is empty- パラメータ:
list- target instance- 戻り値:
- Collection is null or nothing in it then
true
-
toString
Format collection instance to following format.[entity1.toString(), entity2.toString(), ...]
For example, StringBuilder then like[sb1sb1sb1, sb2sb2sb2]
If the entity are the Collection,then call this method for recursively- パラメータ:
collection- a collection instance that format to string- 戻り値:
- single line string value
-
toString
Array version oftoString(Collection)- 関連項目:
-
toStrMeta
Format collection instance to following format.{size: 2, data: [entity1.toString(), entity2.toString()]}- パラメータ:
collection- a collection instance that format to string- 戻り値:
- single line string value
-
toStrMeta
Array version oftoStrMeta(Collection)- 関連項目:
-
toStringBr
Format collection instance to following format.[ entity1.toString(), entity2.toString(), ... ]
For example, StringBuilder then like[ sb1sb1sb1, sb2sb2sb2 ]
If the entity are the Collection,then call this method for recursively- パラメータ:
collection- a collection instance that format to string- 戻り値:
- multiple line string value
-
toStringBr
Array version oftoStringBr(Collection)- 関連項目:
-
toStrMetaBr
Format collection instance to following format.{ size: 2, data: [ entity1.toString(), entity2.toString() ]}- パラメータ:
collection- a collection instance that format to string- 戻り値:
- multiple line string value
-
toStrMetaBr
Array version oftoStrMetaBr(Collection)- 関連項目:
-