com.skillw.pouvoir.api.plugin.map.RegContainer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
package com.skillw.pouvoir.api.plugin.map
/**
* @className RegContainer
*
* @author Glom
* @date 2022/7/30 20:35 Copyright 2022 user.
*
* 为了与java交互而写
*/
interface RegContainer : MutableMap {
/**
* Register
*
* @param key
* @param value
*/
fun register(key: K, value: V): V?
// Modification Operations
/**
* Associates the specified [value] with the specified [key] in the map.
*
* @return the previous value associated with the key, or `null` if the key
* was not present in the map.
*/
override fun put(key: K, value: V): V?
/**
* Removes the specified key and its corresponding value from this map.
*
* @return the previous value associated with the key, or `null` if the key
* was not present in the map.
*/
override fun remove(key: K): V?
// Bulk Modification Operations
/** Updates this map with key/value pairs from the specified map [from]. */
override fun putAll(from: Map): Unit
/** Removes all elements from this map. */
override fun clear(): Unit
// Views
/** Returns a [MutableSet] of all keys in this map. */
override val keys: MutableSet
/**
* Returns a [MutableCollection] of all values in this map. Note that this
* collection may contain duplicate values.
*/
override val values: MutableCollection
/** Returns a [MutableSet] of all key/value pairs in this map. */
override val entries: MutableSet>
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy