setAttributes

fun setAttributes(vararg attributes: T): TreeNode<T>

Change/add attributes (as List) to this node. Create Tree with type T that you want your attributes to have.

Return

this TreeNode for chaining calls