JLab

dataStructures
Class BSTSet

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

public class BSTSet
extends java.lang.Object
implements Set

คลาสที่สร้างเซตด้วยต้นไม้ค้นหาแบบทวิภาค

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

Constructor Summary
BSTSet()
           
 
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

BSTSet

public BSTSet()
Method Detail

size

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

isEmpty

public boolean isEmpty()
Specified by:
isEmpty 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