activemodel / kales.activemodel / HasManyAssociationImpl

HasManyAssociationImpl

abstract class HasManyAssociationImpl<F : ApplicationRecord, T : ApplicationRecord> : HasManyAssociation<F, T>

Constructors

<init>

HasManyAssociationImpl(fromKlass: KClass<F>)

Properties

fromKlass

open val fromKlass: KClass<F>

size

open val size: Int

Inherited Properties

collection

abstract val collection: MutableList<T>

Functions

add

open fun add(element: T): Boolean

addAll

open fun addAll(elements: Collection<T>): Boolean

clear

open fun clear(): Unit

contains

open fun contains(element: T): Boolean

containsAll

open fun containsAll(elements: Collection<T>): Boolean

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

isEmpty

open fun isEmpty(): Boolean

iterator

open fun iterator(): MutableIterator<T>

remove

open fun remove(element: T): Boolean

removeAll

open fun removeAll(elements: Collection<T>): Boolean

retainAll

open fun retainAll(elements: Collection<T>): Boolean

Inheritors

LazyHasManyAssociation

class LazyHasManyAssociation : HasManyAssociationImpl<ApplicationRecord, ApplicationRecord>