JLab

dataStructures
Class BSTCollection

java.lang.Object
  extended by dataStructures.BSTCollection
All Implemented Interfaces:
Collection

public class BSTCollection
extends java.lang.Object
implements Collection

คลาสที่สร้างคอลเล็กชันด้วยต้นไม้ค้นหาแบบทวิภาค

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

Constructor Summary
BSTCollection()
           
 
Method Summary
 void add(java.lang.Object e)
           
 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

BSTCollection

public BSTCollection()
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)
Specified by:
add in interface Collection

remove

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

JLab