|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcynosurex.util.RecentList
public class RecentList
This list class keeps tracks of a recent list of objects placed in the list. Old objects that over-flow from the list are no longer kept by the list.
Field Summary |
---|
Fields inherited from interface cynosurex.internal.CommonInterface |
---|
copyright, copyrightYears, notice, program, version |
Fields inherited from interface cynosurex.internal.AuthorCommon |
---|
author, copyrightSymbol, noticeMsg, rights |
Fields inherited from interface cynosurex.internal.CompanyCommon |
---|
company, email, website |
Constructor Summary | |
---|---|
RecentList()
|
|
RecentList(int value)
Constructor that allows the specification of maximum capacity keep track before over-flowing. |
Method Summary | |
---|---|
int |
getCapacity()
This method returns the capacity of this list. |
java.util.Enumeration |
getElements()
This method returns the list of elements being stored. |
int |
getSize()
This method returns the size of this list. |
boolean |
isEmpty()
Whether the list is empty. |
void |
putElement(java.lang.Object obj)
This method places an object into the list. |
void |
setCapacity(int value)
Changes the maximum capacity of the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RecentList()
public RecentList(int value)
value
- Specify how many object to track.Method Detail |
---|
public int getCapacity()
public java.util.Enumeration getElements()
public int getSize()
public boolean isEmpty()
public void putElement(java.lang.Object obj)
obj
- The object to add to the list.public void setCapacity(int value)
value
- The new value to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |