Package com.github.javaparser.utils
Class VisitorList<N extends Node>
- java.lang.Object
-
- com.github.javaparser.utils.VisitorList<N>
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericVisitor<Boolean,Visitable>
equalsVisitor
protected GenericVisitor<Integer,Void>
hashcodeVisitor
protected List<com.github.javaparser.utils.VisitorList.EqualsHashcodeOverridingFacade>
innerList
-
Constructor Summary
Constructors Constructor Description VisitorList(GenericVisitor<Integer,Void> hashcodeVisitor, GenericVisitor<Boolean,Visitable> equalsVisitor)
Pass the visitors to use for equals and hashcode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, N elem)
boolean
add(N elem)
boolean
addAll(int index, Collection<? extends N> col)
boolean
addAll(Collection<? extends N> col)
void
clear()
boolean
contains(Object elem)
boolean
containsAll(Collection<?> col)
N
get(int index)
int
indexOf(Object elem)
boolean
isEmpty()
Iterator<N>
iterator()
int
lastIndexOf(Object elem)
ListIterator<N>
listIterator()
ListIterator<N>
listIterator(int index)
N
remove(int index)
boolean
remove(Object elem)
boolean
removeAll(Collection<?> col)
boolean
retainAll(Collection<?> col)
N
set(int index, N elem)
int
size()
List<N>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] arr)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Field Detail
-
innerList
protected List<com.github.javaparser.utils.VisitorList.EqualsHashcodeOverridingFacade> innerList
-
hashcodeVisitor
protected final GenericVisitor<Integer,Void> hashcodeVisitor
-
equalsVisitor
protected final GenericVisitor<Boolean,Visitable> equalsVisitor
-
-
Constructor Detail
-
VisitorList
public VisitorList(GenericVisitor<Integer,Void> hashcodeVisitor, GenericVisitor<Boolean,Visitable> equalsVisitor)
Pass the visitors to use for equals and hashcode.
-
-
Method Detail
-
add
public boolean add(N elem)
-
addAll
public boolean addAll(Collection<? extends N> col)
-
addAll
public boolean addAll(int index, Collection<? extends N> col)
-
clear
public void clear()
-
contains
public boolean contains(Object elem)
-
containsAll
public boolean containsAll(Collection<?> col)
- Specified by:
containsAll
in interfaceCollection<N extends Node>
- Specified by:
containsAll
in interfaceList<N extends Node>
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object elem)
- Specified by:
lastIndexOf
in interfaceList<N extends Node>
-
listIterator
public ListIterator<N> listIterator()
- Specified by:
listIterator
in interfaceList<N extends Node>
-
listIterator
public ListIterator<N> listIterator(int index)
- Specified by:
listIterator
in interfaceList<N extends Node>
-
remove
public boolean remove(Object elem)
-
removeAll
public boolean removeAll(Collection<?> col)
-
retainAll
public boolean retainAll(Collection<?> col)
-
size
public int size()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] arr)
-
-