Java Collection Tutorial - Collections Example








Field

  1. Java Collections EMPTY_LIST
  2. Java Collections EMPTY_MAP
  3. Java Collections EMPTY_SET

Method

  1. Java Collections.addAll(Collection c, T... elements)
  2. Java Collections.asLifoQueue(Deque deque)
  3. Java Collections.binarySearch(List > list, T key)
  4. Java Collections.binarySearch(List list, T key, Comparator c)
  5. Java Collections .checkedCollection ( Collection c, Class type)
  6. Java Collections.checkedList(List list, Class type)
  7. Java Collections.checkedMap(Map m, Class keyType, Class valueType)
  8. Java Collections.checkedSet(Set s, Class type)
  9. Java Collections .checkedSortedMap ( SortedMap m, Class keyType, Class valueType)
  10. Java Collections .checkedSortedSet ( SortedSet s, Class type)
  11. Java Collections.copy(List dest, List src)
  12. Java Collections .disjoint ( Collection c1, Collection c2)
  13. Java Collections .emptyEnumeration ()
  14. Java Collections.emptyIterator()
  15. Java Collections.emptyList()
  16. Java Collections .emptyListIterator ()
  17. Java Collections.emptyMap()
  18. Java Collections.emptySet()
  19. Java Collections .enumeration ( Collection c)
  20. Java Collections.fill(List list, T obj)
  21. Java Collections .frequency ( Collection c, Object o)
  22. Java Collections .indexOfSubList ( List source, List target)
  23. Java Collections .lastIndexOfSubList ( List source, List target)
  24. Java Collections.list(Enumeration e)
  25. Java Collections.max(Collection coll)
  26. Java Collections.max(Collection coll, Comparator comp)
  27. Java Collections.min(Collection coll)
  28. Java Collections.min(Collection coll, Comparator comp)
  29. Java Collections.nCopies(int n, T o)
  30. Java Collections.newSetFromMap(Map map)
  31. Java Collections.replaceAll(List list, T oldVal, T newVal)
  32. Java Collections.reverse(List list)
  33. Java Collections .reverseOrder()
  34. Java Collections .reverseOrder ( Comparator cmp)
  35. Java Collections.rotate(List list, int distance)
  36. Java Collections.shuffle(List list)
  37. Java Collections.shuffle(List list, Random rnd)
  38. Java Collections.singleton(T o)
  39. Java Collections.singletonList(T o)
  40. Java Collections.singletonMap(K key, V value)
  41. Java Collections.sort(List list)
  42. Java Collections.sort(List list, Comparator c)
  43. Java Collections.swap(List list, int i, int j)
  44. Java Collections .synchronizedCollection ( Collection c)
  45. Java Collections .synchronizedList ( List list)
  46. Java Collections .synchronizedMap ( Map m)
  47. Java Collections .synchronizedSet ( Set s)
  48. Java Collections .synchronizedSortedMap ( SortedMap m)
  49. Java Collections .synchronizedSortedSet ( SortedSet s)
  50. Java Collections .unmodifiableCollection ( Collection c)
  51. Java Collections .unmodifiableList ( List list)
  52. Java Collections .unmodifiableMap ( Map m)
  53. Java Collections .unmodifiableSet ( Set s)
  54. Java Collections .unmodifiableSortedMap ( SortedMap m)
  55. Java Collections .unmodifiableSortedSet ( SortedSet s)