CloseableSequence

A Sequence which has AutoCloseable resources. Constrained to be iterated only once.

When iteration is completed or interrupted with exception originating from this sequence, all resources are automatically closed.

Properties

Link copied to clipboard
abstract val isClosed: Boolean

Returns whether the CloseableSequence was closed though a call to close.

Functions

Link copied to clipboard

Returns a sequence which adds all elements to the destination list as they pass through.

Link copied to clipboard
abstract fun close()
Link copied to clipboard

Returns a sequence containing only APK splits which are the most compatible with the device.

Link copied to clipboard
abstract operator fun iterator(): Iterator<T>
Link copied to clipboard

Returns a sequence that yields APK splits sorted according to their compatibility with the device.

Link copied to clipboard

Returns a sequence which throws SplitPackageException on iteration if the split package is invalid.

Link copied to clipboard

Returns a Provider which iterates over the APK splits sequence and creates a SplitPackage containing all APK splits from this sequence.

Link copied to clipboard

Returns a sequence which throws SplitPackageException on iteration if the split package is invalid and closes all I/O resources opened in the upstream sequence if it's supported.