Collection UML类图
2022-05-27 00:25:24 2 举报
Java集合类图
作者其他创作
大纲/内容
ArrayList
+ iterator():Iterator+ add(E e):boolean+ get(int index):E+ addAll(Collection<? extends E> c):boolean- grow(int minCapacity)- hugeCapacity(int minCapacity):int
继承
TreeSet
+ iterator():Iterator+ add(E e):boolean+ remove(Object o):boolean+ size():int+ isEmpty():boolean
<<interface>>Map
HashSet
基于JDK1.8
TreeMap
<<interface>>NavigableSet
+ lower(E e):E+ floor(E e):E+ ceiling(E e):E+ higher(E e):E
<<interface>>Collection
+ iterator():Iterator+ size():int+ isEmpty():boolean+ addAll(Collection<? extends E> c):boolean
<<interface>>Iterable
+ iterator():Iterator+ forEach(Consumer<? super T> action)+ spliterator():Spliterator
实现
AbstractCollection
AbstractSequentialList
<<interface>>SortedSet
+ first():E+ last():E+ comparator():Comparator<? super E>+ headSet(E toElement):SortedSet<E>
<<interface>>NavigableMap
HashMap
<<interface>>List
AbstractSet
+ equals(Object o):boolean+ hashCode():int+ removeAll(Collection<?> c):boolean
LinkedList
+ add(E e):boolean+ get(int index):E+ addAll(Collection<? extends E> c):boolean+ push(E e)+ pop():E
<<interface>>Set
AbstractMap
<<interface>>SortedMap
AbstractList
0 条评论
下一页
为你推荐
查看更多