ImmutableList
classin packageklyn.collections
public class ImmutableList<T> extends Object implements IList<T>:
All Implemented Interfaces: IList
Immutable homogeneous ordered collection.
values as IList<Int> = i[10, 20, 30]
print(values[1]) # 20
@param <T> Element type.
Properties
| Modifier and Type |
Member |
Description |
| public override readonly native property |
size |
Number of elements in this list. |
Constructors
| Modifier and Type |
Member |
Description |
| public native |
ImmutableList |
Builds an immutable list by copying the provided read-only list. |
Methods
| Modifier and Type |
Member |
Description |
| public override |
contains |
Returns true when the list contains the given value. |
| public override |
count |
Counts occurrences of the given value. |
| public override |
join |
Joins list values with a separator. |
| public |
sortNew |
Returns a sorted immutable copy of this list. |
| public native override |
toString |
Returns a normalized textual representation using the immutable literal syntax. |
Operators