20230411 java.util.Set
简介
public interface Set<E> extends Collection<E>
- 不包含重复元素
方法
-
add, addAll
-
clear
-
contains, containsAll
-
equals, hashCode
-
isEmpty
-
iterator
-
remove, removeAll, retainAll
-
size
-
spliterator
-
toArray
转数组
public interface Set<E> extends Collection<E>
add, addAll
clear
contains, containsAll
equals, hashCode
isEmpty
iterator
remove, removeAll, retainAll
size
spliterator
toArray
转数组