Uses of Class java.util.HashMap (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Class
java.util.HashMap

- Packages that use HashMap
  Package | Description
  --- | ---
  java.beans.beancontext | Provides classes and interfaces relating to bean context.
  java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
  javax.print.attribute.standard | Package javax.print.attribute.standard contains classes for specific printing attributes.

- - ### Uses of HashMap in java.beans.beancontext

    Fields in java.beans.beancontext declared as HashMap
    Modifier and Type | Field and Description
    --- | ---
    `protected HashMap` | BeanContextSupport.`children` all accesses to the `protected HashMap children` field shall be synchronized on that object.
    `protected HashMap` | BeanContextServicesSupport.`services` all accesses to the `protected transient HashMap services` field should be synchronized on that object

  - ### Uses of HashMap in java.util

    Subclasses of HashMap in java.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `LinkedHashMap<K,V>` Hash table and linked list implementation of the `Map` interface, with predictable iteration order.

  - ### Uses of HashMap in javax.print.attribute.standard

    Subclasses of HashMap in javax.print.attribute.standard
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PrinterStateReasons` Class PrinterStateReasons is a printing attribute class, a set of enumeration values, that provides additional information about the printer's current state, i.e., information that augments the value of the printer's `PrinterState` attribute.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.