An implementation of Set
that wraps an Iterable
of
elements. All operations on this Set
are performed
on the Iterable
.
Initializer |
LazySet({Element*} elems) |
Attributes | |
clone | Source Code Obtain a clone of this object. For a mutable object, this should return a copy of the object. For an immutable object, it is acceptable to return the object itself. Refined declaration: clone |
hash | Source Code shared actual default Integer hash The hash value of the value, which allows the value
to be an element of a hash-based set or key of a
hash-based map. Implementations must respect the
constraint that if Refined declaration: hash |
size | Source Code shared actual Integer size The number of elements returned by the iterator of this iterable object, if the iterator terminates. In the case of an iterable whose elements are not countable, this operation never terminates. Refined declaration: size |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Cloneable<Clone> |
Attributes inherited from: Collection<Element> |
Attributes inherited from: Iterable<Element,Absent> |
Attributes inherited from: Set<Element> |
Methods | |
complement | Source Code Returns a new Refined declaration: complement |
equals | Source Code Determine if two values are equal. Implementations should respect the constraints that:
Furthermore it is recommended that implementations
ensure that if Refined declaration: equals |
exclusiveUnion | Source Code Returns a new Refined declaration: exclusiveUnion |
intersection | Source Code Returns a new Refined declaration: intersection |
iterator | Source Code An iterator for the elements belonging to this container. Refined declaration: iterator |
union | Source Code Returns a new Refined declaration: union |
Inherited Methods |
Methods inherited from: Category |
Methods inherited from: Iterable<Element,Absent> any, by, chain, collect, count, cycle, defaultNullElements, every, filter, find, findLast, fold, following, iterator, longerThan, map, repeat, select, shorterThan, skipping, skippingWhile, sort, taking, takingWhile |
Methods inherited from: Set<Element> |