18#ifndef _DECAF_UTIL_LIST_H_
19#define _DECAF_UTIL_LIST_H_
97 virtual int indexOf(
const E& value)
const = 0;
126 virtual E
get(
int index)
const = 0;
149 virtual E
set(
int index,
const E& element) = 0;
170 virtual void add(
int index,
const E& element) = 0;
List()
Definition List.h:57
virtual void add(int index, const E &element)=0
Inserts the specified element at the specified position in this list.
virtual bool addAll(int index, const Collection< E > &source)=0
Inserts all of the elements in the specified collection into this list at the specified position (opt...
The root interface in the collection hierarchy.
Definition Collection.h:69
virtual bool remove(const E &value)=0
Removes a single instance of the specified element from the collection.
virtual ListIterator< E > * listIterator(int index) const =0
virtual E set(int index, const E &element)=0
Replaces the element at the specified position in this list with the specified element.
virtual ListIterator< E > * listIterator()=0
virtual ListIterator< E > * listIterator(int index)=0
virtual E removeAt(int index)=0
Removes the element at the specified position in this list.
virtual ListIterator< E > * listIterator() const =0
virtual E get(int index) const =0
Gets the element contained at position passed.
virtual int indexOf(const E &value) const =0
Returns the index of the first occurrence of the specified element in this list, or -1 if this list d...
List()
Definition List.h:57
virtual void add(int index, const E &element)=0
Inserts the specified element at the specified position in this list.
virtual ~List()
Definition List.h:59
virtual bool addAll(int index, const Collection< E > &source)=0
Inserts all of the elements in the specified collection into this list at the specified position (opt...
virtual int lastIndexOf(const E &value) const =0
Returns the index of the last occurrence of the specified element in this list, or -1 if this list do...
An iterator for lists that allows the programmer to traverse the list in either direction,...
Definition ListIterator.h:38
#define DECAF_API
Definition Config.h:29
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25