Java基础(42)AbstractSet类

  AbstractSet类的子类有HashSet(其子类是LinkedHashSet)、EnumSet、TreeSet

  1.HashSet

public class HashSet<E> extends AbstractSet<E> implements Set<E>, Cloneable, java.io.Serializable

 

  2.LinkedHashSet

public class LinkedHashSet<E> extends HashSet<E> implements Set<E>, Cloneable, java.io.Serializable {

 

  3.EnumSet

public abstract class EnumSet<E extends Enum<E>> extends AbstractSet<E> implements Cloneable, java.io.Serializable

 

  4.TreeSet

public class TreeSet<E> extends AbstractSet<E> implements NavigableSet<E>, Cloneable, java.io.Serializable

 

posted @ 2018-09-16 22:20  BigJunOba  阅读(508)  评论(0编辑  收藏  举报