interface List
source · line 14public
public interface List<T> : Collection<T>, IndexGet<Long, T>
- Supertype
Collection<T> - Supertype
IndexGet<Long, T> - Inherited
operator fun iterator(): Iterator<T>· Iterable<T> - Inherited
val size: Long· Collection<T>
An ordered collection with zero-based Long indexing.
Extensions
public fun List<HttpField>.copyFields(configure: HttpFieldsBuilder.() -> Unit): Array<HttpField>· scoop:scoop.http:0.1.0public fun List<HttpField>.findAll(name: List<Byte>): Array<HttpField>· scoop:scoop.http:0.1.0public fun <T> List<T>.randomOrNone(random: Random): T?· scoop:scoop.std:0.1.0public fun <T> List<T>.toMutableArray(): MutableArray<T>· scoop:scoop.core:0.1.0public fun <T> List<T>.toArray(): Array<T>· scoop:scoop.core:0.1.0public fun <T : Compare<T>> List<T>.binarySearch(element: T, fromIndex: Long = 0L, toIndex: Long = this.size): Long· scoop:scoop.std:0.1.0public fun <T> List<T>.binarySearch(element: T, comparator: Comparator<T>, fromIndex: Long = 0L, toIndex: Long = this.size): Long· scoop:scoop.std:0.1.0public fun <T> List<T>.random(random: Random): T· scoop:scoop.std:0.1.0public fun List<Byte>.toHexString(uppercase: Boolean = false): String· scoop:scoop.std:0.1.0
type parameter T
source · line 14public
T
function get
source · line 18public
public override operator fun get(index: Long): T
- Overrides
get· IndexGet
Returns the element at a zero-based index; an index outside the list bounds is invalid.
parameter index
source · line 18public
index: Long