IntegerStack

TODO add class description

Constructors

this
this()
Undocumented in source.
this
this(int capacity)
Undocumented in source.
this
this(IntegerStack list)
Undocumented in source.

Members

Functions

peek
int peek()

@uml @final

pop
int pop()

@uml @final

push
void push(int value)

@uml @final

Inherited Members

From IntegerList

data_
int[] data_;

@uml @read

add
void add(int value)

@uml @final

addAll
void addAll(int[] array)

@uml @final

addAll
void addAll(IntegerList list)
Undocumented in source. Be warned that the author may not have intended to support it.
get
int get(int index)

@uml @final

contains
bool contains(int value)

@uml @final

set
int set(int index, int value)

@uml @final

removeAt
int removeAt(int index)

@uml @final

removeRange
void removeRange(int fromIndex, int toIndex)

@uml @final

isEmpty
bool isEmpty()

@uml @final

size
int size()

@uml @final

clear
void clear [@property getter]

@uml @final @property

toArray
int[] toArray [@property getter]

@uml @final @property

sort
void sort()
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)

Compares the specified object with this list for equality. Returns {@code true} if and only if the specified object is also an {@link IntegerList}, both lists have the same size, and all corresponding pairs of elements in the two lists are equal. In other words, two lists are defined to be equal if they contain the same elements in the same order. <p> This implementation first checks if the specified object is this list. If so, it returns {@code true}; if not, it checks if the specified object is an {@link IntegerList}. If not, it returns {@code false}; if so, it checks the size of both lists. If the lists are not the same size, it returns {@code false}; otherwise it iterates over both lists, comparing corresponding pairs of elements. If any comparison returns {@code false}, this method returns {@code false}.

toHash
size_t toHash()

Returns the hash code value for this list.

toString
string toString()

Returns a string representation of this list. @uml @override

data
int[] data()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta