public interface RecycleBin
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Object key,
Recyclable r)
add a Recyclable to the
bin
|
void |
addItem(Recyclable r)
add a Recyclable to the
bin
|
void |
empty()
empty the current contents of the bin
|
List<?> |
getAll()
get all of the items in this bin
|
Recyclable |
getItem()
get an unused Recyclable item from the bin
|
void |
setMaxItems(int i)
set the maximum number of items for this
bin
|
void addItem(Recyclable r) throws RecycleBinFullException
RecycleBinFullExceptionvoid addItem(Object key, Recyclable r) throws RecycleBinFullException
RecycleBinFullExceptionRecyclable getItem() throws RecycleBinFullException
RecycleBinFullExceptionList<?> getAll()
void empty()
void setMaxItems(int i)
Copyright © 2002–2019 Starter Inc.. All rights reserved.