AbstractPropertyList

abstract class AbstractPropertyList<T>(name: String, value: MutableList<T>, description: String? = null, fixedValues: MutableSet<MutableList<T>> = mutableSetOf(), readOnly: Boolean = false) : AbstractPropertyMultiValued<T, MutableList<T>> , MutableList<T> (source)

SuperClass for property as lists.

Parameters

name

Unique identifier for the property.

value

Initial list of values for the property.

description

Optional human-readable description.

fixedValues

Set of allowed values for the property.

readOnly

If true, the property cannot be modified.

T

current type

Constructors

Link copied to clipboard
constructor(name: String, value: MutableList<T>, description: String? = null, fixedValues: MutableSet<MutableList<T>> = mutableSetOf(), readOnly: Boolean = false)
constructor(name: String, vararg values: T)

Constructor by T expression.

Properties

Link copied to clipboard
open override val description: String?

Optional human-readable description of the property.

Link copied to clipboard
open override val fixedValues: Set<MutableList<T>>

Set of allowed values. If not empty, the property value must be one of these values.

Link copied to clipboard

Checks if this property has fixed values defined.

Link copied to clipboard
open override val name: String

Unique name of the property.

Link copied to clipboard
open override val readOnly: Boolean

Indicates whether this property is read-only. Some stores do not allow property edition.

Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val value: MutableList<T>

Current value of the property.

Functions

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

open override fun add(element: T): Boolean

Add element to the collection.

Link copied to clipboard
open override fun addAll(index: Int, elements: Collection<T>): Boolean
open override fun addAll(elements: Collection<T>): Boolean

fun addAll(vararg values: T)

Add values to target collections.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open operator override fun contains(element: T): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): T
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun indexOf(element: T): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): MutableIterator<T>
Link copied to clipboard
open override fun lastIndexOf(element: T): Int
Link copied to clipboard
open override fun listIterator(): MutableListIterator<T>
open override fun listIterator(index: Int): MutableListIterator<T>
Link copied to clipboard
operator fun minusAssign(element: T)
Link copied to clipboard
operator fun plusAssign(element: T)
Link copied to clipboard
open override fun remove(element: T): Boolean
Link copied to clipboard
open override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
open override fun removeAt(index: Int): T
Link copied to clipboard
open override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
open operator override fun set(index: Int, element: T): T
Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): MutableList<T>