常用方法:

  • sort(List list)
  • synchronizedMap(Map m) //生成线程安全的Map
  • synchronizedList(List list) // 生成线程安全的List
  • reverse(List list) //反转元素
  • shuffle(List list) //随机打乱元素
  • Collections.singleton(RESERVED_DEFAULT_PROFILE_NAME);在方法调用返回一个不可变的集合只包含指定对象
  • Collections.emptyMap();// 返回空的Map

results matching ""

    No results matching ""