
geotrellis.util.Component.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-util_2.11 Show documentation
Show all versions of geotrellis-util_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
package geotrellis.util
/** Defines an object that can be used as a lens
* into a component C of some type T.
*/
trait Component[T, C] extends GetComponent[T, C] with SetComponent[T, C]
object Component {
def apply[T, C](_get: T => C, _set: (T, C) => T): Component[T, C] =
new Component[T, C] {
val get = _get
val set = _set
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy