public abstract class Buffer extends PersistentObject
Modifier and Type | Field and Description |
---|---|
boolean |
isAllocated |
int |
k |
int |
level |
int |
weight |
Constructor and Description |
---|
Buffer(int k)
This method was created in VisualAge.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
clear()
Clears the receiver.
|
boolean |
isAllocated()
Returns whether the receiver is already allocated.
|
abstract boolean |
isEmpty()
Returns whether the receiver is empty.
|
abstract boolean |
isFull()
Returns whether the receiver is empty.
|
boolean |
isPartial()
Returns whether the receiver is partial.
|
int |
level()
Returns whether the receiver's level.
|
void |
level(int level)
Sets the receiver's level.
|
abstract int |
size()
Returns the number of elements contained in the receiver.
|
abstract void |
sort()
Sorts the receiver.
|
int |
weight()
Returns whether the receiver's weight.
|
void |
weight(int weight)
Sets the receiver's weight.
|
clone
public int weight
public int level
public int k
public boolean isAllocated
public Buffer(int k)
k
- intpublic abstract void clear()
public boolean isAllocated()
public abstract boolean isEmpty()
public abstract boolean isFull()
public boolean isPartial()
public int level()
public void level(int level)
public abstract int size()
public abstract void sort()
public int weight()
public void weight(int weight)
Jump to the Parallel Colt Homepage