Overview of Java Collections Framework API (UML diagram)
- Details
- Written by Nam Ha Minh
- Last Updated on 17 June 2019   |   Print Email
The Java collections framework has a very complex API hierarchy.
The following class diagram shows a brief overview of the Java Collections Framework which is divided into four groups: List, Set, Map and Queue. Only the principal, commonly-used interfaces and classes are listed.
Class diagram of Java Collections framework
There are also more detailed class diagrams for each group:
Other Java Collections Tutorials:
- What is Java Collections Framework?
- Java List Tutorial
- Java Set Tutorial
- Java Map Tutorial
- Java Queue Tutorial
- 18 Java Collections and Generics Best Practices
Comments
Boolean average(Statcomp arr) {
double sum = 0.0;
double sum1=0;
for(int i=0; i < nums.length; i++)
sum += nums.doubleValue();
for( int i=0; i < arr.nums.length; i++)
sum1 += arr.nums.doubleValue();
return (sum1==sum);
}
Then what is requirement of wildcard??
TreeSet implements NavigableSet not extends.
I think AbstractSequentialList just extends AbstractList, and
LinkedList extends AbstractSequentialList and implements List