モジュール pro.eng.yui.YuiFramework

インタフェース ICollectionUtil


public interface ICollectionUtil
Define common Collection operations
導入されたバージョン:
1.0.0
バージョン:
1.0.0
作成者:
yui-KITAMURA
  • メソッドの詳細

    • toList

      <T> List<T> toList(T... aryObj)
      Convert array to List
      型パラメータ:
      T - Type of parameters
      パラメータ:
      aryObj - values array
      戻り値:
      an List that contains all arguments
      関連項目:
    • toArrayList

      <T> ArrayList<T> toArrayList(T... aryObj)
      Convert array to ArrayList
      型パラメータ:
      T - Type of parameters
      パラメータ:
      aryObj - values array
      戻り値:
      an List that contains all arguments
      関連項目:
    • isEmpty

      boolean isEmpty(Object[] array)
      judge array is empty ( null or length is Zero )
      パラメータ:
      array - target
      戻り値:
      array is null or nothing in collection then true
    • isEmpty

      boolean isEmpty(Collection<?> list)
      judge Collection is empty
      パラメータ:
      list - target instance
      戻り値:
      Collection is null or nothing in it then true
    • toString

      String toString(Collection<?> collection)
      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

      String toString(Object[] array)
      Array version of toString(Collection)
      関連項目:
    • toStrMeta

      String toStrMeta(Collection<?> collection)
      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

      String toStrMeta(Object[] array)
      Array version of toStrMeta(Collection)
      関連項目:
    • toStringBr

      String toStringBr(Collection<?> collection)
      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

      String toStringBr(Object[] array)
      Array version of toStringBr(Collection)
      関連項目:
    • toStrMetaBr

      String toStrMetaBr(Collection<?> collection)
      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

      String toStrMetaBr(Object[] array)
      Array version of toStrMetaBr(Collection)
      関連項目: