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>equalsVisitorprotected GenericVisitor<Integer,Void>hashcodeVisitorprotected 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 voidadd(int index, N elem)booleanadd(N elem)booleanaddAll(int index, Collection<? extends N> col)booleanaddAll(Collection<? extends N> col)voidclear()booleancontains(Object elem)booleancontainsAll(Collection<?> col)Nget(int index)intindexOf(Object elem)booleanisEmpty()Iterator<N>iterator()intlastIndexOf(Object elem)ListIterator<N>listIterator()ListIterator<N>listIterator(int index)Nremove(int index)booleanremove(Object elem)booleanremoveAll(Collection<?> col)booleanretainAll(Collection<?> col)Nset(int index, N elem)intsize()List<N>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] arr)StringtoString()-
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:
containsAllin interfaceCollection<N extends Node>- Specified by:
containsAllin interfaceList<N extends Node>
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object elem)
- Specified by:
lastIndexOfin interfaceList<N extends Node>
-
listIterator
public ListIterator<N> listIterator()
- Specified by:
listIteratorin interfaceList<N extends Node>
-
listIterator
public ListIterator<N> listIterator(int index)
- Specified by:
listIteratorin 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)
-
-