Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(String) - Method in class ExpandableArrayBuffer
- add(String) - Method in interface ExpandableBuffer
-
Adds the specified string to the rear of this buffer.
- addFront(String) - Method in class ExpandableArrayBuffer
- addFront(String) - Method in interface ExpandableBuffer
-
Adds the specified string to the front of this buffer.
- addRear(String) - Method in class ExpandableArrayBuffer
- addRear(String) - Method in interface ExpandableBuffer
-
Adds the specified string to the rear of this buffer.
B
- BufferTester - Class in Unnamed Package
- BufferTester() - Constructor for class BufferTester
C
- capacity() - Method in class ExpandableArrayBuffer
- capacity() - Method in interface ExpandableBuffer
-
The total number of elements that this buffer can hold without needing to be resized.
- CBufferApp - Class in Unnamed Package
- CBufferApp() - Constructor for class CBufferApp
- clear() - Method in class ExpandableArrayBuffer
- clear() - Method in interface ExpandableBuffer
-
Removes all elements from this buffer.
D
- DEFAULT_CAPACITY - Static variable in interface ExpandableBuffer
-
The initial capacity of a buffer created with the default constructor.
- doubleCapacity() - Method in class ExpandableArrayBuffer
- doubleCapacity() - Method in interface ExpandableBuffer
-
Doubles the capacity of this buffer.
E
- EmptyBufferException - Exception Class in Unnamed Package
-
Exception used when trying to access items in an empty buffer.
- EmptyBufferException() - Constructor for exception class EmptyBufferException
-
Default Constructor
- EmptyBufferException(String) - Constructor for exception class EmptyBufferException
-
Constructs an EmptyBufferException with the specified detail message.
- ExpandableArrayBuffer - Class in Unnamed Package
-
An expandable circular buffer implemented with an array.
- ExpandableArrayBuffer() - Constructor for class ExpandableArrayBuffer
-
Constructs a buffer with the default capacity.
- ExpandableArrayBuffer(int) - Constructor for class ExpandableArrayBuffer
-
Constructs a buffer with the given capacity.
- ExpandableBuffer - Interface in Unnamed Package
-
A circular buffer of Strings implemented with an array.
F
- free() - Method in class ExpandableArrayBuffer
- free() - Method in interface ExpandableBuffer
-
Returns the number of elements that can be added to this buffer before before it becomes full.
- front() - Method in class ExpandableArrayBuffer
- front() - Method in interface ExpandableBuffer
-
Returns but does not remove the string at the front of this buffer.
I
- isEmpty() - Method in class ExpandableArrayBuffer
- isEmpty() - Method in interface ExpandableBuffer
-
Returns true if this buffer contains no elements, returns false otherwise.
- isFull() - Method in class ExpandableArrayBuffer
- isFull() - Method in interface ExpandableBuffer
-
Returns true if this buffer is full, returns false otherwise.
L
- LookAt - Class in Unnamed Package
- LookAt() - Constructor for class LookAt
M
- main(String[]) - Static method in class BufferTester
- main(String[]) - Static method in class CBufferApp
- main(String[]) - Static method in class LookAt
P
- print(ExpandableBuffer) - Static method in class LookAt
- print(String[][]) - Static method in class TestResult
- print(String[][], String[][]) - Static method in class TestResult
R
- rear() - Method in class ExpandableArrayBuffer
- rear() - Method in interface ExpandableBuffer
-
Returns but does not remove the string at the rear of this buffer.
- remove() - Method in class ExpandableArrayBuffer
- remove() - Method in interface ExpandableBuffer
-
Removes and returns the string at the front of this buffer.
- removeFront() - Method in class ExpandableArrayBuffer
- removeFront() - Method in interface ExpandableBuffer
-
Removes and returns the string at the front of this buffer.
- removeRear() - Method in class ExpandableArrayBuffer
- removeRear() - Method in interface ExpandableBuffer
-
Removes and returns the string at the rear of this buffer.
- reportTestResults(ArrayList<TestResult>) - Static method in class TestResult
S
- size() - Method in class ExpandableArrayBuffer
- size() - Method in interface ExpandableBuffer
-
Returns the number of elements in this buffer.
T
- TestResult - Class in Unnamed Package
-
Used with the tester program.
- TestResult(String, int[], int[]) - Constructor for class TestResult
- TestResult(String, Object, Object) - Constructor for class TestResult
- TestResult(String, String[][], String[][]) - Constructor for class TestResult
- TestResult(String, String[], String[]) - Constructor for class TestResult
- TestResult(String, String, String) - Constructor for class TestResult
- toString() - Method in class ExpandableArrayBuffer
- toString() - Method in interface ExpandableBuffer
-
Returns a string representation of this buffer.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form