public class SmallStack extends Object
SmallStack s=new SmallStack(); s.push(7); D.p(s.popInt());
| Modifier and Type | Field and Description |
|---|---|
protected int |
nextFree
Points to the top of the stack
|
protected long[] |
values
Holds the stack content
|
| Constructor and Description |
|---|
SmallStack() |
SmallStack(double d) |
SmallStack(float d) |
SmallStack(long d) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
empty() |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
peekBoolean() |
double |
peekDouble() |
float |
peekFloat() |
int |
peekInt() |
long |
peekLong() |
boolean |
popBoolean() |
double |
popDouble() |
float |
popFloat() |
int |
popInt() |
long |
popLong() |
boolean |
push(boolean b) |
double |
push(double d) |
double |
push(float d) |
long |
push(long l) |
int |
search(boolean d) |
int |
search(double d) |
int |
search(long l) |
int |
size() |
double[] |
toDoubleArray() |
int[] |
toIntArray() |
long[] |
toLongArray() |
protected long[] values
protected int nextFree
public SmallStack()
public SmallStack(double d)
public SmallStack(long d)
public SmallStack(float d)
public long push(long l)
public boolean push(boolean b)
public double push(double d)
public double push(float d)
public long peekLong()
public boolean peekBoolean()
public int peekInt()
public float peekFloat()
public double peekDouble()
public long popLong()
public boolean popBoolean()
public int popInt()
public float popFloat()
public double popDouble()
public int size()
public boolean empty()
public int search(long l)
public int search(double d)
public int search(boolean d)
public double[] toDoubleArray()
public long[] toLongArray()
public int[] toIntArray()
Copyright © 2018. All rights reserved.