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

geotrellis.util.Component.scala Maven / Gradle / Ivy

Go to download

GeoTrellis is an open source geographic data processing engine for high performance applications.

The newest version!
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