commonMain.earth.worldwind.util.AbstractSource.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.
package earth.worldwind.util
/**
* AbstractSource instances are intended to be used as a key into a cache or other data structure that enables sharing of
* loaded resources.
*/
abstract class AbstractSource protected constructor(protected val source: Any) {
/**
* Resource post-processing routine.
*/
var postprocessor: ResourcePostprocessor? = null
/**
* @return generic image source as unrecognized object.
*/
fun asUnrecognized() = source
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is AbstractSource) return false
if (source != other.source) return false
return true
}
override fun hashCode() = source.hashCode()
override fun toString() = source.toString()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy