JLab

dataStructures
Class ArraySet

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

public class ArraySet
extends ArrayCollection
implements Set

คลาสที่สร้างเซตด้วยอาเรย์

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

Constructor Summary
ArraySet(int cap)
           
 
Method Summary
 void add(java.lang.Object element)
          add a new element without duplication.
 
Methods inherited from class dataStructures.ArrayCollection
contains, isEmpty, remove, size, toArray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dataStructures.Collection
contains, isEmpty, remove, size
 

Constructor Detail

ArraySet

public ArraySet(int cap)
Method Detail

add

public void add(java.lang.Object element)
Description copied from interface: Set
add a new element without duplication.

Specified by:
add in interface Collection
Specified by:
add in interface Set
Overrides:
add in class ArrayCollection

JLab