程序包 com.sh.util

类 ListUtil


public class ListUtil extends SHUtils
Description: 列表工具类 Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • ListUtil

      public ListUtil()
  • 方法详细资料

    • copyNewList

      public static List copyNewList(List list)
      生成新的集合对象
      参数:
      list - List
      返回:
      List
    • copyNewArrayList

      public static List copyNewArrayList(List list)
      生成新的集合对象
      参数:
      list - List
      返回:
      List
    • copyNewLinkedList

      public static List copyNewLinkedList(List list)
      生成新的集合对象
      参数:
      list - List
      返回:
      List
    • copyNewMap

      public static Map copyNewMap(Map map)
      生成新的map对象
      参数:
      map - Map
      返回:
      Map
    • copyNewTreeMap

      public static Map copyNewTreeMap(Map map)
      生成新的map对象
      参数:
      map - Map
      返回:
      Map
    • copyNewLinkedMap

      public static Map copyNewLinkedMap(Map map)
      生成新的map对象
      参数:
      map - Map
      返回:
      Map
    • copyNewSet

      public static Set copyNewSet(Set set)
      生成新的Set对象
      参数:
      set - Set
      返回:
      Set
    • copyNewLinkedSet

      public static Set copyNewLinkedSet(Set set)
      生成新的Set对象
      参数:
      set - Set
      返回:
      Set
    • copyNewTreeSet

      public static Set copyNewTreeSet(Set set)
      生成新的Set对象
      参数:
      set - Set
      返回:
      Set
    • toList

      public static List toList(String[] array)
      通过数组构造List
      参数:
      array - String[]
      返回:
      List
    • toStringList

      public static List<String> toStringList(String[] array)
    • toList1

      public static List toList1(String... array)
      通过数组构造List
      参数:
      array - String[]
      返回:
      List
    • toStringArray

      public static String[] toStringArray(List<String> list)
      转化为字符串数组
      参数:
      list - List
      返回:
      String[]
    • toArray

      public static Object[] toArray(List list)
      将List转化为数组
      参数:
      list - List
      返回:
      Object[]
    • toCharArray

      public static char[] toCharArray(List<Character> list)
      将list转化为char数组
      参数:
      list - List
      返回:
      char[]