ItemContainer

interface ItemContainer : Iterable<Item<*>>

Container of items.

Item container contains read-only access operations for item.

See also

Functions

contains
Link copied to clipboard
abstract operator fun contains(item: Item<*>): Boolean
Whether this item container contains specified item or not.
abstract operator fun contains(name: String): Boolean
Whether this item container contains item with specified name or not.
abstract operator fun contains(path: Path): Boolean
Whether this item container contains the specified path or not.
forEach
Link copied to clipboard
open fun forEach(p0: Consumer<in Item<*>>)
get
Link copied to clipboard
abstract operator fun <T> get(item: Item<T>): T
Get associated value with specified item.
abstract operator fun <T> get(name: String): T
Get associated value with specified item name.
getOrNull
Link copied to clipboard
abstract fun <T> getOrNull(item: Item<T>): T?
Returns associated value if specified item exists, null otherwise.
abstract fun <T> getOrNull(name: String): T?
Returns associated value if specified item name exists, null otherwise.
invoke
Link copied to clipboard
open operator fun <T> invoke(name: String): T
Get associated value with specified item name.
iterator
Link copied to clipboard
abstract operator override fun iterator(): Iterator<Item<*>>
Returns iterator of items in this item container.
nameOf
Link copied to clipboard
abstract fun nameOf(item: Item<*>): String
Returns the qualified name of the specified item.
pathOf
Link copied to clipboard
open fun pathOf(item: Item<*>): Path
Returns the qualified path of the specified item.
spliterator
Link copied to clipboard
open fun spliterator(): Spliterator<Item<*>>

Properties

items
Link copied to clipboard
open val items: List<Item<*>>
List of items in this item container.
itemWithNames
Link copied to clipboard
abstract val itemWithNames: List<Pair<Item<*>, String>>
List of items with the corresponding qualified names in this item container.
nameOfItems
Link copied to clipboard
open val nameOfItems: List<String>
List of qualified names of items in this item container.

Inheritors

Config
Link copied to clipboard

Sources

jvm source
Link copied to clipboard