Child

final case class Child(parent: CostCenter, current: String) extends CostCenter
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final def /(location: String): CostCenter

Create a child cost center that is nested under this one.

Create a child cost center that is nested under this one.

Inherited from:
CostCenter
final def hasParent(name: String): Boolean

Check whether this cost center has a parent with a given name.

Check whether this cost center has a parent with a given name.

(Root / "foo" / "bar").hasParent("foo") // true
(Root / "foo" / "bar").hasParent("bar") // true
(Root / "foo" / "bar").hasParent("baz") // false
Inherited from:
CostCenter
final def isRoot: Boolean
Inherited from:
CostCenter
final def location: Option[String]
Inherited from:
CostCenter
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product