php    php100   android
當前位置:首頁 » Java.util包 »

Java.util.LinkedHashSet類

評論  編輯

The java.util.LinkedHashSet class is a Hash table and Linked list implementation of the Set interface, with predictable iteration order.Following are the important points about LinkedHashSet:

  • This class provides all of the optional Set operations, and permits null elements.

類聲明

以下是聲明java.util.LinkedHashSet class:

public class LinkedHashSet<E>
   extends HashSet<E>
     implements Set<E>, Cloneable, Serializable

Parameters

Following is the parameter for java.util.LinkedHashSet class:

  • E -- This is the type of elements maintained by this set.

類構造方法

S.N.構造方法 & 詳細描述
1LinkedHashSet()
This constructs a new, empty linked hash set with the default initial capacity (16) and load factor (0.75).
2LinkedHashSet(Collection<? extends E> c)
This constructs a new linked hash set with the same elements as the specified collection.
3LinkedHashSet(int initialCapacity)
This constructs a new, empty linked hash set with the specified initial capacity and the default load factor (0.75).
4LinkedHashSet(int initialCapacity, float loadFactor)
This constructs a new, empty linked hash set with the specified initial capacity and load factor.

類方法

此類從以下類繼承了上麵列出的方法

  • java.util.HashSet

  • java.util.AbstractSet

  • java.util.AbstractCollection

  • java.util.Object

  • java.util.Set


貢獻/合作者

正在開放中...
 

評論(條)

  • 還冇有評論!