JLab

dataStructures
Class LinkedCollectionWithHeader

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

public class LinkedCollectionWithHeader
extends java.lang.Object
implements Collection

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

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

Constructor Summary
LinkedCollectionWithHeader()
           
 
Method Summary
 void add(java.lang.Object e)
           
 boolean contains(java.lang.Object e)
           
 boolean isEmpty()
           
 void remove(java.lang.Object e)
           
 int size()
           
 java.lang.Object[] toArray()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedCollectionWithHeader

public LinkedCollectionWithHeader()
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

toArray

public java.lang.Object[] toArray()

JLab