org.eclipse.jdt.internal.compiler.util
类 SimpleSet

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.util.SimpleSet
所有已实现的接口:
Cloneable

public final class SimpleSet
extends Object
implements Cloneable

A simple lookup table is a non-synchronized Hashtable, whose keys and values are Objects. It also uses linear probing to resolve collisions rather than a linked list of hash table entries.


字段摘要
 int elementSize
           
 int threshold
           
 Object[] values
           
 
构造方法摘要
SimpleSet()
           
SimpleSet(int size)
           
 
方法摘要
 Object add(Object object)
           
 Object addIfNotIncluded(Object object)
           
 void asArray(Object[] copy)
           
 void clear()
           
 Object clone()
           
 boolean includes(Object object)
           
 Object remove(Object object)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

values

public Object[] values

elementSize

public int elementSize

threshold

public int threshold
构造方法详细信息

SimpleSet

public SimpleSet()

SimpleSet

public SimpleSet(int size)
方法详细信息

add

public Object add(Object object)

addIfNotIncluded

public Object addIfNotIncluded(Object object)

asArray

public void asArray(Object[] copy)

clear

public void clear()

clone

public Object clone()
             throws CloneNotSupportedException
覆盖:
Object 中的 clone
抛出:
CloneNotSupportedException

includes

public boolean includes(Object object)

remove

public Object remove(Object object)

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.