Initializer |
CeylonSet(JSet<out Element> set) |
Attributes | |
hash | Source Codeshared actual 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:
Therefore, a class which refines In general, Note that when executing on a Java Virtual Machine, the
64-bit |
size | Source Codeshared actual Integer size The number of elements returned by the |
Inherited Attributes |
Attributes inherited from: CeylonCollection<Element> |
Attributes inherited from: Object |
Attributes inherited from: Collection<Element> |
Attributes inherited from: Iterable<Element,Absent> |
Attributes inherited from: Set<Element> |
Methods | |
clone | Source Codeshared actual default Set<Element> clone() A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned. |
complement | Source Codeshared actual Set<Element> complement<Other>(Set<Other> set) Returns a new For example: set { "hello", "world" } ~ set { 1, 2, "hello" } Produces the set Refines Set.complement |
contains | Source Codeshared actual Boolean contains(Object element) Returns For any instance element in c For most
However, it is possible to form a useful |
equals | Source Codeshared actual Boolean equals(Object that) Determine if two values are equal. For any two non-null objects x == y Implementations should respect the constraints that:
Furthermore it is recommended that implementations
ensure that if A class which explicitly refines Note that an implementation of |
exclusiveUnion | Source Codeshared actual Set<Element|Other> exclusiveUnion<Other>(Set<Other> set) Returns a new Refines Set.exclusiveUnion |
intersection | Source Codeshared actual Set<Element&Other> intersection<Other>(Set<Other> set) Returns a new For example: set { "hello", "world" } & set { 1, 2, "hello" } Produces the set Note that, according to this definition, and even
though set { 1 } & set { 1.0 } produces the empty set Refines Set.intersection |
iterator | Source Codeshared actual Iterator<Element> iterator() An iterator for the elements belonging to this stream. If this is a nonempty stream with type |
union | Source Codeshared actual Set<Element|Other> union<Other>(Set<Other> set) Returns a new For example: set { "hello", "world" } | set { 1, 2, "hello" } Produces the set Note that it is possible for two sets of disjoint
element type to be considered to have elements in
common. For example, since set { 1 } | set { 1.0 } produces the set Refines Set.union |
Inherited Methods |
Methods inherited from: CeylonCollection<Element> |
Methods inherited from: Object |
Methods inherited from: Category<Element> |
Methods inherited from: Collection<Element> |
Methods inherited from: Iterable<Element,Absent> any() , by() , chain() , collect() , contains() , count() , defaultNullElements() , each() , every() , filter() , find() , findLast() , flatMap() , fold() , follow() , frequencies() , getFromFirst() , group() , indexes() , interpose() , iterator() , locate() , locateLast() , locations() , longerThan() , map() , max() , narrow() , partition() , product() , reduce() , repeat() , scan() , select() , sequence() , shorterThan() , skip() , skipWhile() , sort() , spread() , summarize() , tabulate() , take() , takeWhile() |
Methods inherited from: Set<Element> |