CursorList

class CursorList<E>(list: List<E> = emptyList(), index: Int = -1) : List<E>

A List with a mutable cursor index.

next and previous refer to the last element returned by a previous call to any of both methods.

Parameters

list

the content of the CursorList

index

the index of the element that will initially be considered as the last returned element. May be -1 or the size of the list as well.

Constructors

Link copied to clipboard
constructor(list: List<E> = emptyList(), index: Int = -1)

Properties

Link copied to clipboard

Returns whether all the resources in the collection are audio clips.

Link copied to clipboard

Returns whether all the resources in the collection are bitmaps.

Link copied to clipboard

Returns whether all the resources in the collection are HTML documents.

Link copied to clipboard

Returns whether all the resources in the collection are video clips.

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard

Returns whether all the resources in the collection are matching the given media type.

Link copied to clipboard

Returns whether all the resources in the collection are matching any of the given media types.

Link copied to clipboard
open operator override fun contains(element: E): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<E>): Boolean
Link copied to clipboard
@JvmName(name = "copyContributors")
fun List<Contributor>.copy(transformer: ManifestTransformer): List<Contributor>
@JvmName(name = "copyLinks")
fun List<Link>.copy(transformer: ManifestTransformer): List<Link>
@JvmName(name = "copySubjects")
fun List<Subject>.copy(transformer: ManifestTransformer): List<Subject>
Link copied to clipboard

Finds all the links matching the given media type.

Link copied to clipboard

Finds all the links matching any of the given media types.

Link copied to clipboard

Finds all the links with the given relation.

Link copied to clipboard

Finds the first link matching the given HREF.

Link copied to clipboard

Finds the first link matching the given media type.

Link copied to clipboard

Finds the first link with the given relation.

Link copied to clipboard

Returns a list of Link after flattening the children and alternates links of the receiver.

Link copied to clipboard
open operator override fun get(index: Int): E
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun indexOf(element: E): Int
Link copied to clipboard

Returns the first Link with the given href, or null if not found.

Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<E>
Link copied to clipboard
open override fun lastIndexOf(element: E): Int
Link copied to clipboard
open override fun listIterator(): ListIterator<E>
open override fun listIterator(index: Int): ListIterator<E>
Link copied to clipboard
fun next(): E?

Moves the cursor forward and returns the element, or null when reaching the end.

Link copied to clipboard
fun previous(): E?

Moves the cursor backward and returns the element, or null when reaching the beginning.

Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<E>
Link copied to clipboard

Serializes a list of JSONable into a JSONArray.

Link copied to clipboard

Converts a PDF outline to Link objects.