Represents an iterable collection of elements of finite
size. Collection
is the abstract supertype of List
,
Map
, and Set
.
A Collection
forms a Category
of its elements.
All Collection
s are Cloneable
. If a collection is
immutable, it is acceptable that clone
produce a
reference to the collection itself. If a collection is
mutable, clone
should produce an immutable collection
containing references to the same elements, with the
same structure as the original collection—that
is, it should produce an immutable shallow copy of the
collection.
Attributes | |
empty | Source Code shared actual default Boolean empty Determine if the collection is empty, that is, if it has no elements. Refined declaration: empty |
string | Source Code shared actual default String string A string of form Refined declaration: string |
Inherited Attributes |
Attributes inherited from: Object |
Attributes inherited from: Cloneable<Clone> |
Attributes inherited from: Iterable<Element,Absent> |
Methods | |
contains | Source Code Return Refined declaration: contains |
Inherited Methods |
Methods inherited from: Object |
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 |