buffer-java
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
buffer-java [2007/10/04 12:49] – franck | buffer-java [2007/10/04 14:03] (current) – franck | ||
---|---|---|---|
Line 32: | Line 32: | ||
@param element the element to be added. | @param element the element to be added. | ||
*/ | */ | ||
- | public void put(Object element) | + | public |
{ | { | ||
while (this.inCount - this.outCount >= Buffer.SIZE) | while (this.inCount - this.outCount >= Buffer.SIZE) | ||
Line 48: | Line 48: | ||
@return an element of the buffer. | @return an element of the buffer. | ||
*/ | */ | ||
- | public Object get() | + | public |
{ | { | ||
while (this.incount - this.outCount <=0) | while (this.incount - this.outCount <=0) | ||
Line 81: | Line 81: | ||
public Consumer(Buffer buffer) | public Consumer(Buffer buffer) | ||
{ | { | ||
+ | super(); | ||
this.buffer = buffer; | this.buffer = buffer; | ||
} | } | ||
Line 124: | Line 125: | ||
public Producer(Buffer buffer) | public Producer(Buffer buffer) | ||
{ | { | ||
+ | super(); | ||
this.buffer = buffer; | this.buffer = buffer; | ||
} | } |
buffer-java.1191502175.txt.gz · Last modified: 2007/10/04 12:49 by franck