IntegerList

A buffert list of interger values

Constructors

this
this()
Undocumented in source.
this
this(int capacity)
Undocumented in source.
this
this(IntegerList list)
Undocumented in source.
this
this(int[] list)
Undocumented in source.

Members

Functions

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.
contains
bool contains(int value)

@uml @final

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

@uml @final

isEmpty
bool isEmpty()

@uml @final

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}.

removeAt
int removeAt(int index)

@uml @final

removeRange
void removeRange(int fromIndex, int toIndex)

@uml @final

set
int set(int index, int value)

@uml @final

size
int size()

@uml @final

sort
void sort()
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()

Returns the hash code value for this list.

toString
string toString()

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

Properties

clear
void clear [@property getter]

@uml @final @property

toArray
int[] toArray [@property getter]

@uml @final @property

Variables

data_
int[] data_;

@uml @read

Meta