namedAccountable

Augments an existing accountable with the provided description.

The resource description is constructed in this format: description [toString()]

This is a point-in-time type safe view: consumers will not be able to cast or manipulate the resource in any way.


fun namedAccountable(description: String, bytes: Long): Accountable

Returns an accountable with the provided description and bytes.


fun namedAccountable(description: String, children: MutableCollection<Accountable>, bytes: Long): Accountable

Returns an accountable with the provided description, children and bytes.

The resource descriptions are constructed in this format: description [toString()]

This is a point-in-time type safe view: consumers will not be able to cast or manipulate the resources in any way, provided that the passed in children Accountables (and all their descendants) were created with one of the namedAccountable functions.