Package rasj.odmg
Class RasList
java.lang.Object
java.util.AbstractCollection
rasj.odmg.RasCollection
rasj.odmg.RasList
- All Implemented Interfaces:
Iterable,Collection,List,SequencedCollection,DCollection,DList
This class implements the ODMG DList interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified element at the specified position in this list.booleanAppends the specified element to the end of this List.booleanaddAll(int index, Collection c) Inserts all of the elements in the specified collection into this list at the specified position.Creates a new DList object that contains the contents of this DList object concatenated with the contents of the otherList object.get(int index) Returns the element at the specified position in this list.intReturns the index in this list of the first occurence of the specified element, or -1 if the list does not contain this element.iterator()Returns an iterator over the elements in this list in proper sequence.intReturns the index in this list of the last occurence of the specified element, or -1 if the list does not contain this element.Returns a list iterator of the elements in this list (in proper sequence).listIterator(int index) Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list.remove(int index) Removes the element at the specified position in this list.Replaces the element at the specified position in this list with the specified element.intsize()Returns the number of elements in this List.subList(int fromIndex, int toIndex) Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive.Methods inherited from class rasj.odmg.RasCollection
existsElement, query, select, selectElementMethods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface org.odmg.DCollection
existsElement, query, select, selectElementMethods inherited from interface java.util.List
addAll, addFirst, addLast, clear, contains, containsAll, equals, getFirst, getLast, hashCode, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
RasList
public RasList()constructor
-
-
Method Details
-
concat
Creates a new DList object that contains the contents of this DList object concatenated with the contents of the otherList object. -
subList
Returns a view of the portion of this list between fromIndex, inclusive, and toIndex, exclusive. -
listIterator
Returns a list iterator of the elements in this list (in proper sequence).- Specified by:
listIteratorin interfaceList
-
iterator
Returns an iterator over the elements in this list in proper sequence.- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceList- Overrides:
iteratorin classRasCollection
-
listIterator
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list.- Specified by:
listIteratorin interfaceList
-
lastIndexOf
Returns the index in this list of the last occurence of the specified element, or -1 if the list does not contain this element.- Specified by:
lastIndexOfin interfaceList
-
indexOf
Returns the index in this list of the first occurence of the specified element, or -1 if the list does not contain this element. -
remove
Removes the element at the specified position in this list. -
add
Appends the specified element to the end of this List.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList- Overrides:
addin classAbstractCollection
-
add
Inserts the specified element at the specified position in this list. -
set
Replaces the element at the specified position in this list with the specified element. -
get
Returns the element at the specified position in this list. -
addAll
Inserts all of the elements in the specified collection into this list at the specified position. -
size
public int size()Returns the number of elements in this List.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Overrides:
sizein classRasCollection
-