public class MutableListImpl<E> extends ArrayList<E> implements MutableList<E>
SINGLETON_NAME
Constructor and Description |
---|
MutableListImpl() |
MutableListImpl(Collection<? extends E> c) |
MutableListImpl(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
append(E element)
Adds a value at the end of the mutable list.
|
void |
insertAt(E element,
int at)
Adds element at the given position.
|
String |
joinfields(String sep,
String begin,
String end)
Creates a string separated by sep and delimited with begin and end
strings.
|
void |
prepend(E element)
Adds element at the beginning of the mutable list.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public MutableListImpl()
public MutableListImpl(Collection<? extends E> c)
public MutableListImpl(int initialCapacity)
public String joinfields(String sep, String begin, String end)
MutableList
joinfields
in interface MutableList<E>
sep
- separator stringbegin
- starting delimiterend
- ending delimiterpublic void append(E element)
MutableList
append
in interface MutableList<E>
element
- the element object to be addedpublic void insertAt(E element, int at)
MutableList
insertAt
in interface MutableList<E>
at
- the 1-based position (in compliance with OCL convention).public void prepend(E element)
MutableList
prepend
in interface MutableList<E>
element
- the element object to be prependedCopyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.