public class DoubleBuffer extends Buffer
isAllocated, k, level, weight
Constructor and Description |
---|
DoubleBuffer(int k)
This method was created in VisualAge.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double value)
Adds a value to the receiver.
|
void |
addAllOfFromTo(DoubleArrayList elements,
int from,
int to)
Adds a value to the receiver.
|
void |
clear()
Clears the receiver.
|
Object |
clone()
Returns a deep copy of the receiver.
|
boolean |
contains(double element)
Returns whether the specified element is contained in the receiver.
|
boolean |
isEmpty()
Returns whether the receiver is empty.
|
boolean |
isFull()
Returns whether the receiver is empty.
|
int |
memory()
Returns the number of elements currently needed to store all contained
elements.
|
double |
rank(double element)
Returns the rank of a given element within the sorted sequence of the
receiver.
|
int |
size()
Returns the number of elements contained in the receiver.
|
void |
sort()
Sorts the receiver.
|
String |
toString()
Returns a String representation of the receiver.
|
public DoubleBuffer(int k)
k
- intpublic void add(double value)
public void addAllOfFromTo(DoubleArrayList elements, int from, int to)
public Object clone()
clone
in class PersistentObject
public boolean contains(double element)
public boolean isEmpty()
public boolean isFull()
public int memory()
public double rank(double element)
element
- the element to search forpublic int size()
Jump to the Parallel Colt Homepage