All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.api.plugin.map.LinkedMap.kt Maven / Gradle / Ivy

The newest version!
package com.skillw.pouvoir.api.plugin.map

import java.util.concurrent.CopyOnWriteArrayList

/**
 * Linked map
 *
 * @param K
 * @param V
 * @constructor Create empty Linked map
 */
open class LinkedMap : BaseMap() {
    /** List */
    protected val list = CopyOnWriteArrayList()

    override fun put(key: K, value: V): V? {
        list.add(key)
        return super.put(key, value)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy