Class VisitorSet<N extends Node>
java.lang.Object
com.github.javaparser.utils.VisitorSet<N>
- All Implemented Interfaces:
Iterable<N>, Collection<N>, Set<N>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GenericVisitor<Boolean, Visitable> private final GenericVisitor<Integer, Void> private final Set<VisitorSet<N>.EqualsHashcodeOverridingFacade> -
Constructor Summary
ConstructorsConstructorDescriptionVisitorSet(GenericVisitor<Integer, Void> hashcodeVisitor, GenericVisitor<Boolean, Visitable> equalsVisitor) Pass the visitors to use for equals and hashcode. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends N> col) voidclear()booleanbooleancontainsAll(Collection<?> col) booleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> col) booleanretainAll(Collection<?> col) intsize()Object[]toArray()<T> T[]toArray(T[] arr) toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, streamMethods inherited from interface Set
equals, hashCode, spliterator
-
Field Details
-
innerSet
-
hashcodeVisitor
-
equalsVisitor
-
-
Constructor Details
-
VisitorSet
public VisitorSet(GenericVisitor<Integer, Void> hashcodeVisitor, GenericVisitor<Boolean, Visitable> equalsVisitor) Pass the visitors to use for equals and hashcode.
-
-
Method Details
-
add
-
addAll
-
clear
-
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<N extends Node>- Specified by:
containsAllin interfaceSet<N extends Node>
-
isEmpty
-
iterator
-
remove
-
removeAll
-
retainAll
-
size
-
toArray
-
toArray
-
toString
-