org.eclipse.jdt.internal.compiler.util
Class SimpleSetOfCharArray

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.util.SimpleSetOfCharArray
All Implemented Interfaces:
Cloneable

public final class SimpleSetOfCharArray
extends Object
implements Cloneable

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


Field Summary
 int elementSize
           
 int threshold
           
 char[][] values
           
 
Constructor Summary
SimpleSetOfCharArray()
           
SimpleSetOfCharArray(int size)
           
 
Method Summary
 Object add(char[] object)
           
 void asArray(Object[] copy)
           
 void clear()
           
 Object clone()
           
 char[] get(char[] object)
           
 boolean includes(char[] object)
           
 char[] remove(char[] object)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

values

public char[][] values

elementSize

public int elementSize

threshold

public int threshold
Constructor Detail

SimpleSetOfCharArray

public SimpleSetOfCharArray()

SimpleSetOfCharArray

public SimpleSetOfCharArray(int size)
Method Detail

add

public Object add(char[] object)

asArray

public void asArray(Object[] copy)

clear

public void clear()

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

get

public char[] get(char[] object)

includes

public boolean includes(char[] object)

remove

public char[] remove(char[] object)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.