JLab

dataStructures
Class QuadraticProbingHashSet

java.lang.Object
  extended by dataStructures.QuadraticProbingHashSet
All Implemented Interfaces:
Collection, Set

public class QuadraticProbingHashSet
extends java.lang.Object
implements Set

คลาสที่สร้างเซตด้วยตารางแฮชแบบตรวจกำลังสอง

Author:
สมชาย ประสิทธิ์จูตระกูล

Constructor Summary
QuadraticProbingHashSet(int m)
           
 
Method Summary
 void add(java.lang.Object e)
          add a new element without duplication.
 boolean contains(java.lang.Object e)
           
 boolean isEmpty()
           
 void remove(java.lang.Object e)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuadraticProbingHashSet

public QuadraticProbingHashSet(int m)
Method Detail

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

size

public int size()
Specified by:
size in interface Collection

contains

public boolean contains(java.lang.Object e)
Specified by:
contains in interface Collection

remove

public void remove(java.lang.Object e)
Specified by:
remove in interface Collection

add

public void add(java.lang.Object e)
Description copied from interface: Set
add a new element without duplication.

Specified by:
add in interface Collection
Specified by:
add in interface Set

JLab