HasFeatures

com.phasmidsoftware.xmldoc.kml.HasFeatures
See theHasFeatures companion trait
object HasFeatures

Companion object HasFeatures provides utilities for editing objects that have a property of owning features.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def editHasFeaturesToOption[T](t: T)(edit: KmlEdit)(g: Seq[Feature] => T): Option[T]

Method to edit an object that has features.

Method to edit an object that has features.

Type parameters

T

the type of t.

Value parameters

edit

the edit to be applied.

g

a function which takes a Seq[Feature] and creates an optional new copy of the T based on the provided Feature sequence.

t

the object to edit.

Attributes

Returns

an optional copy of t with a (potentially) new set of features.