TreapSetOfString extension type

on
Implemented types

Properties

base → TreapSetBase<String, StringNode>
final
compare → Comparator<String>
finalinherited
first → String
The first element in the sorted iteration order. Throws StateError if the set is empty.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether this set is empty.
no setterinherited
isNotEmpty → bool
Whether this collection has at least one element.
no setterinherited
iterator → Iterator<String>
An iterator over the elements of this set in ascending order.
no setterinherited
last → String
The last element in the sorted iteration order. Throws StateError if the set is empty.
no setterinherited
length → int
The number of elements in this set.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
single → String
Checks that this iterable has only one element, and returns that element.
no setterinherited

Methods

add(String value) → bool
Adds value to the set.
inherited
addAll(Iterable<String> elements) → void
Adds all elements to this set.
inherited
any(bool test(String value)) → bool
Checks whether any element of this iterable satisfies test.
inherited
cast<R>() → Set<R>
Provides a view of this set as a set of R instances.
inherited
clear() → void
Removes all elements from the set.
inherited
contains(covariant String element) → bool
Whether value is in the set.
inherited
containsAll(Iterable<Object?> other) → bool
Whether this set contains all the elements of other.
inherited
difference(TreapSetOfString other) → TreapSetOfString
Returns a new set with the elements of this set that are not in other.
elementAt(int index) → String
Returns the element at the given index in the sorted iteration order.
inherited
every(bool f(String value)) → bool
Checks whether every element of this iterable satisfies test.
inherited
expand<T>(Iterable<T> f(String element)) → Iterable<T>
Expands each element of this Iterable into zero or more elements.
inherited
firstWhere(bool test(String value), {String orElse()?}) → String
The first element that satisfies the given predicate test.
inherited
fold<T>(T initialValue, T combine(T previousValue, String element)) → T
Reduces a collection to a single value by iteratively combining each element of the collection with an existing value
inherited
followedBy(Iterable<String> other) → Iterable<String>
Creates the lazy concatenation of this iterable and other.
inherited
forEach(void f(String element)) → void
Invokes action on each element of this iterable in iteration order.
inherited
intersection(TreapSetOfString other) → TreapSetOfString
Returns a new set which is the intersection of this set and other.
join([String separator = ""]) → String
Converts each element to a String and concatenates the strings.
inherited
lastWhere(bool test(String value), {String orElse()?}) → String
The last element that satisfies the given predicate test.
inherited
lookup(covariant String element) → String?
If an object equal to object is in the set, return it.
inherited
map<T>(T f(String element)) → Iterable<T>
The current elements of this iterable modified by toElement.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reduce(String combine(String value, String element)) → String
Reduces a collection to a single value by iteratively combining elements of the collection using the provided function.
inherited
remove(covariant String value) → bool
Removes value from the set.
inherited
removeAll(Iterable<Object?> elements) → void
Removes each element of elements from this set.
inherited
removeWhere(bool test(String value)) → void
Removes all elements of this set that satisfy test.
inherited
retainAll(Iterable<Object?> elements) → void
Removes all elements of this set that are not elements in elements.
inherited
retainWhere(bool test(String value)) → void
Removes all elements of this set that fail to satisfy test.
inherited
singleWhere(bool test(String value), {String orElse()?}) → String
The single element that satisfies test.
inherited
skip(int count) → TreapSetOfString
Returns a new set skipping the first n elements in sorted order.
skipWhile(bool test(String value)) → TreapSetOfString
Returns a new set skipping leading elements while test is true.
take(int count) → TreapSetOfString
Returns a new set containing the first n elements in sorted order.
takeWhile(bool test(String value)) → TreapSetOfString
Returns a new set containing the leading elements while test is true.
toList({bool growable = true}) → List<String>
Creates a List containing the elements of this Iterable.
inherited
toSet() → TreapSetOfString
Returns a new TreapSetBase with the same elements as this set.
toString() → String
A string representation of this object.
inherited
union(TreapSetOfString other) → TreapSetOfString
Returns a new set which is the union of this set and other.
where(bool f(String value)) → Iterable<String>
Creates a new lazy Iterable with all elements that satisfy the predicate test.
inherited
whereType<T>() → Iterable<T>
Creates a new lazy Iterable with all elements that have type T.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited