JLab

dataStructures
Class LinkedCollection

java.lang.Object
  extended by dataStructures.LinkedCollection
All Implemented Interfaces:
Collection
Direct Known Subclasses:
LinkedSet

public class LinkedCollection
extends java.lang.Object
implements Collection

คลาสที่สร้างคอลเล็กชันด้วยการโยงปมข้อมูล

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

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

LinkedCollection

public LinkedCollection()
Method Detail

size

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

isEmpty

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

add

public void add(java.lang.Object e)
Specified by:
add 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

JLab