MutablePartCollection

A collection object that can be changed containing parts for a geometry. Each part is represented by a MutablePart.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor(spatialReference: SpatialReference? = null)

Creates a mutable part collection with a specified spatial reference.

constructor(parts: Iterable<MutablePart>, spatialReference: SpatialReference? = null)

Creates a mutable part collection with a specified spatial reference, and adds the given parts to it.

Properties

Link copied to clipboard
open override val size: Int

The number of parts in the collection.

Link copied to clipboard

The spatial reference for the mutable part collection. If the collection does not have a spatial reference null is returned.

Functions

Link copied to clipboard
open override fun add(index: Int, element: MutablePart)

Inserts a part into the mutable part collection at the specified part index. The part index can be equal to the part count and this is equivalent to adding a part to the end of the collection.

Link copied to clipboard
open override fun clear()

Remove all parts from the mutable part collection. After calling this method the mutable part collection is empty.

Link copied to clipboard
open operator override fun get(index: Int): MutablePart

Returns a part at the specified index in the collection.

Link copied to clipboard
open override fun indexOf(element: MutablePart): Int

Retrieves the position of the segment in the mutable part collection. The first segment that is equal to the supplied segment is returned.

Link copied to clipboard
open override fun isEmpty(): Boolean

Indicates if the mutable part collection contains no parts.

Link copied to clipboard
open override fun removeAt(index: Int): MutablePart

Removes a part from the mutable part collection.

Link copied to clipboard
open operator override fun set(index: Int, element: MutablePart): MutablePart

Replace a part in the mutable part collection at the specified part index.

Inherited functions

Link copied to clipboard
abstract override fun add(element: MutablePart): Boolean
Link copied to clipboard
abstract override fun addAll(elements: Collection<MutablePart>): Boolean
abstract fun addAll(index: Int, elements: Collection<MutablePart>): Boolean
Link copied to clipboard
open override fun addFirst(p0: MutablePart)
Link copied to clipboard
open override fun addLast(p0: MutablePart)
Link copied to clipboard
abstract operator override fun contains(element: MutablePart): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<MutablePart>): Boolean
Link copied to clipboard
open fun forEach(p0: Consumer<in MutablePart>)
Link copied to clipboard
open override fun getFirst(): MutablePart
Link copied to clipboard
open override fun getLast(): MutablePart
Link copied to clipboard
abstract operator override fun iterator(): Iterator<MutablePart>
Link copied to clipboard
abstract fun lastIndexOf(element: MutablePart): Int
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<MutablePart>
abstract override fun listIterator(index: Int): MutableListIterator<MutablePart>
Link copied to clipboard
Link copied to clipboard
abstract override fun remove(element: MutablePart): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<MutablePart>): Boolean
Link copied to clipboard
open override fun removeFirst(): MutablePart
Link copied to clipboard
Link copied to clipboard
open override fun removeLast(): MutablePart
Link copied to clipboard
Link copied to clipboard
abstract override fun retainAll(elements: Collection<MutablePart>): Boolean
Link copied to clipboard
open override fun reversed(): MutableList<MutablePart>
Link copied to clipboard
open fun sort(p0: Comparator<in MutablePart>)
Link copied to clipboard
open override fun spliterator(): Spliterator<MutablePart>
Link copied to clipboard
Link copied to clipboard
abstract override fun subList(fromIndex: Int, toIndex: Int): MutableList<MutablePart>
Link copied to clipboard
open fun toArray(): Array<Any>
open fun <T : Any> toArray(p0: Array<T>): Array<T>
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>