up previous next contents
Next: Internationalization, localization, and formatting Up: Collections framework Previous: Maps   Contents

Collection Utilities

  • The java.util.Collections class provides standard utilities for Collections.
    • List Sorting
    • Binary List Search
    • List reversing and shuffling
    • Min and Max
    • Synchonization
  • Sorting makes use of the Comparator interface, which a programmer implements to determine how objects of a particular type are to be ordered.
  • The Syncronization methods return thread-safe collections that are backed by a specified collection. Note that iteration is still not thread safe in this case.


up previous next contents
Next: Internationalization, localization, and formatting Up: Collections framework Previous: Maps   Contents