Package com.github.javaparser.utils
Class VisitorSet<N extends Node>
- java.lang.Object
-
- com.github.javaparser.utils.VisitorSet<N>
-
-
Constructor Summary
Constructors Constructor Description VisitorSet(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 boolean
add(N elem)
boolean
addAll(Collection<? extends N> col)
void
clear()
boolean
contains(Object elem)
boolean
containsAll(Collection<?> col)
boolean
isEmpty()
Iterator<N>
iterator()
boolean
remove(Object elem)
boolean
removeAll(Collection<?> col)
boolean
retainAll(Collection<?> col)
int
size()
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.Set
equals, hashCode, spliterator
-
-
-
-
Constructor Detail
-
VisitorSet
public VisitorSet(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)
-
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 interfaceSet<N extends Node>
-
isEmpty
public boolean isEmpty()
-
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)
-
-