public class IntCircularQueue extends Object implements Serializable
Constructor and Description |
---|
IntCircularQueue(int size) |
Modifier and Type | Method and Description |
---|---|
boolean |
addFirst(int e) |
boolean |
addLast(int e) |
void |
clear() |
int |
get(int index) |
boolean |
isEmpty() |
int |
pollFirst()
This method is the main reason we re-wrote the class.
|
int |
pollLast()
This method is the main reason we re-wrote the class.
|
int |
size() |
public boolean isEmpty()
public int size()
public void clear()
public int get(int index)
public boolean addFirst(int e)
public boolean addLast(int e)
public int pollFirst()
public int pollLast()
Copyright © 2015. All rights reserved.