JLab

dataStructures
Class LinearProbingHashSet

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

public class LinearProbingHashSet
extends java.lang.Object
implements Set

คลาสที่สร้างเซตด้วยตารางแฮชแบบตรวจเชิงเส้น

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

Constructor Summary
LinearProbingHashSet(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

LinearProbingHashSet

public LinearProbingHashSet(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

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

remove

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

JLab