VisitorSet

open class VisitorSet<N : Node?> : Set<N> (source)

A set that overrides the equals and hashcode calculation of the added nodes by using another equals and hashcode visitor for those methods.

Constructors

Link copied to clipboard
constructor(hashcodeVisitor: GenericVisitor<Integer, Void>, equalsVisitor: GenericVisitor<Boolean, Visitable>)
Pass the visitors to use for equals and hashcode.

Functions

Link copied to clipboard
open fun add(elem: N): Boolean
Link copied to clipboard
open fun addAll(col: Collection<out N>): Boolean
Link copied to clipboard
open fun clear()
Link copied to clipboard
open fun contains(elem: Any): Boolean
Link copied to clipboard
open fun containsAll(col: Collection<out Any>): Boolean
Link copied to clipboard
open fun <E> copyOf(coll: Collection<out E>): Set<E>
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
open fun iterator(): Iterator<N>
abstract fun iterator(): Iterator<T>
Link copied to clipboard
open fun <E> of(): Set<E>
Link copied to clipboard
open fun parallelStream(): Stream<E>
Link copied to clipboard
open fun remove(elem: Any): Boolean
Link copied to clipboard
open fun removeAll(col: Collection<out Any>): Boolean
Link copied to clipboard
open fun removeIf(filter: Predicate<in E>): Boolean
Link copied to clipboard
open fun retainAll(col: Collection<out Any>): Boolean
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<E>
Link copied to clipboard
open fun toArray(): Array<Any>
open fun <T> toArray(arr: Array<T>): Array<T>
Link copied to clipboard
open fun toString(): String