Java HashMap class

[Java HashMap class]

HashMap is often used when developing in Java, so I summarized it as a review.

Map

It is managed by elements different from List, Set, and Queue. Map manages elements by the combination of key and value.

HashMap

HashMap is the most basic class of Map implementation class. The key cannot be duplicated. Has no turn.

Main methods of HashMap class

・ Int size ()

Get the number of elements in Map

・ Clear ()

Remove all elements

・ Get (Object key)

Get the value corresponding to key

・ KeySet ()

Get all keys

・ Put (key, value)

Add the specified key / value combination

・ IsEmpty ()

Determine if Map is empty

・ Remove (Object key)

Delete the specified key

-Collection values ()

Get all values

・ ContainsKey (Object key)

Determine if key is included in Map

・ ContainsValue (Object value)

Determine if value is included in Map

Recommended Posts

Java HashMap class
Java class methods
[Java] Class inheritance
java Scanner class
java (abstract class)
[Java] Nested class
Java anonymous class
About Java class
[java] abstract class
[Java] Object class
Java local class
[Java] How to use the HashMap class
About class division (Java)
[Java] About Singleton Class
Java inner class review
Read Java HashMap source
Java class type field
Java programming (class method)
About Java String class
Java programming (class structure)
About java abstract class
Initializing HashMap in Java
Java memo (standard class) substring
Java tips --StaticUtility class modifier
Java inflexible String class substring
Java memo (standard class) length
[Implementation] Java Process class notes
About Java class loader types
How to use java class
[Java] Comparator of Collection class
Java class definition and instantiation
Java
Java learning memo (abstract class)
Summary of Java Math class
[Java] What is class inheritance?
About Java class variables class methods
Java
[Java basics] What is Class?
Java HashMap, entrySet [Personal memo]
Note No.5 "HashMap value has multiple values using class" [Java]
Create an immutable class with JAVA
Why are class variables needed? [Java]
Call Kotlin's sealed class from Java
[Java] Object-oriented syntax --class method / argument
Various methods of Java String class
How to disassemble Java class files
Kotlin Class to send to Java developers
StringBuffer and StringBuilder Class in Java
How to decompile java class files
[Java] How to use LinkedHashMap class
java (use class type for field)
Java source code reading java.lang.Math class
[Java] Button template class by Graphics
How to use class methods [Java]
Java HashMap Transform js json Formal
[Java] How to use Math class
Java learning (0)
Studying Java ―― 3
[Java] array
What is a class in Java language (3 /?)
[Java] Annotation