commonMain.earth.worldwind.util.Pool.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwind-jvm Show documentation
Show all versions of worldwind-jvm Show documentation
The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
The newest version!
package earth.worldwind.util
/**
* Pool provides an interface for managing a pool of object instances.
*
* @param the pooled type */
interface Pool {
/**
* Acquires an instance from the pool. This returns null if the pool is empty.
*
* @return an instance from the pool, or null if the pool is empty
*/
fun acquire(): T?
/**
* Releases an instance to the pool. This has no effect if the instance is null.
*
* @param instance the instance to release
*/
fun release(instance: T?)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy