VisitorList

open class VisitorList<N : Node?> : List<N> (source)

A list 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
open fun add(index: Int, elem: N)
Link copied to clipboard
open fun addAll(col: Collection<out N>): Boolean
open fun addAll(index: Int, col: Collection<out N>): Boolean
Link copied to clipboard
open fun addFirst(e: E)
Link copied to clipboard
open fun addLast(e: E)
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>): List<E>
Link copied to clipboard
open fun forEach(action: Consumer<in T>)
Link copied to clipboard
open fun get(index: Int): N
Link copied to clipboard
open fun getFirst(): E
Link copied to clipboard
open fun getLast(): E
Link copied to clipboard
open fun indexOf(elem: Any): Int
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 lastIndexOf(elem: Any): Int
Link copied to clipboard
open fun listIterator(index: Int): ListIterator<N>
Link copied to clipboard
open fun <E> of(): List<E>
Link copied to clipboard
open fun parallelStream(): Stream<E>
Link copied to clipboard
open fun remove(index: Int): N
open fun remove(elem: Any): Boolean
Link copied to clipboard
open fun removeAll(col: Collection<out Any>): Boolean
Link copied to clipboard
open fun removeFirst(): E
Link copied to clipboard
open fun removeIf(filter: Predicate<in E>): Boolean
Link copied to clipboard
open fun removeLast(): E
Link copied to clipboard
open fun replaceAll(operator: UnaryOperator<E>)
Link copied to clipboard
open fun retainAll(col: Collection<out Any>): Boolean
Link copied to clipboard
open fun reversed(): List<E>
abstract fun reversed(): SequencedCollection<E>
Link copied to clipboard
open fun set(index: Int, elem: N): N
Link copied to clipboard
open fun size(): Int
Link copied to clipboard
open fun sort(c: Comparator<in E>)
Link copied to clipboard
Link copied to clipboard
open fun stream(): Stream<E>
Link copied to clipboard
open fun subList(fromIndex: Int, toIndex: Int): List<N>
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