Package org.sonar.php.tree.impl
Class SeparatedListImpl<T extends Tree>
java.lang.Object
org.sonar.php.tree.impl.SeparatedListImpl<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SeparatedList<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) elementsAndSeparators(Function<T, ? extends Tree> elementTransformer) static <T extends Tree>
SeparatedListImpl<T>empty()get(int index) getSeparator(int i) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<U> U[]toArray(U[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
SeparatedListImpl
-
-
Method Details
-
empty
-
getSeparator
- Specified by:
getSeparatorin interfaceSeparatedList<T extends Tree>
-
getSeparators
- Specified by:
getSeparatorsin interfaceSeparatedList<T extends Tree>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <U> U[] toArray(U[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends Tree>- Specified by:
containsAllin interfaceList<T extends Tree>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends Tree>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends Tree>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends Tree>
-
subList
-
elementsAndSeparators
- Specified by:
elementsAndSeparatorsin interfaceSeparatedList<T extends Tree>
-
elementsAndSeparators
- Specified by:
elementsAndSeparatorsin interfaceSeparatedList<T extends Tree>
-