coderz.py

Keep Coding Keep Cheering!

EnumSet in Java

What is EnumSet in Java? The EnumSet is a specialized implementation of the Set interface designed for use with enumeration types. It derives from the AbstractSet class and implements the Set interface. Enum sets are internally represented as bit vectors. This is a very compact and efficient representation. This class’s space and time performance should […]

September 13, 2022 | Java | 1 comment

AbstractSet in Java

AbstractSet is a Java Collection Framework class that implements the Collection interface and extends the AbstractCollection class. It implements the Set interface in its most basic form. This class does not override any of the AbstractCollection class’s implementations, but instead adds equals() and hashCode() methods. Class Hierarchy: Syntax: Where E is the type of elements […]

September 12, 2022 | Java | 1 comment

Advertisement