Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface fi.hut.tcm.jacob.utility.Storage

Subinterfaces:
OrderedStorage
Implementing Classes:
Pool, Queue, OrderedQueue

public abstract interface Storage
Storage The common interface for fifo or lifo type of storages


Method Summary
boolean empty()
          Return true if storage is empty otherwise false.
boolean full()
          Returns true if storage is full otherwise false.
void put(java.lang.Object item)
          Adds item to storage.
java.lang.Object take()
          Removes item from storage and returns reference to it.
 

Method Detail

full

public boolean full()
Returns true if storage is full otherwise false. This method is used unsynchronized.

empty

public boolean empty()
Return true if storage is empty otherwise false. This method is used unsynchronized.

put

public void put(java.lang.Object item)
Adds item to storage.

take

public java.lang.Object take()
Removes item from storage and returns reference to it.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD