Duplicates<T> extension

on

Properties

containsDuplicates bool

Available on Iterable<T>, provided by the Duplicates extension

Returns true if the iterable contains any duplicate elements.
no setter
duplicates Iterable<T>

Available on Iterable<T>, provided by the Duplicates extension

Returns a new iterable containing only the duplicate elements from this iterable.
no setter
numberOfDuplicates int

Available on Iterable<T>, provided by the Duplicates extension

Returns the number of duplicate elements in the iterable.
no setter
uniques Iterable<T>

Available on Iterable<T>, provided by the Duplicates extension

Returns a new iterable containing only the unique elements from this iterable.
no setter

Methods

addAllByAvoidingDuplicates(Iterable<T> values) Iterable<T>

Available on Iterable<T>, provided by the Duplicates extension

Returns a new iterable with values appended to the end of this iterable, avoiding duplicates.