Name
open class Name : Disposable, AutoCloseable, NameInterface
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| format | open override fun format(format: NameFormat): String Formats a name into a string based on the available output formats. The default separator is . |
| hashCode | open override fun hashCode(): Int |
| isSln | open override fun isSln(): Boolean Returns whether this name is a second-level name (Ex. test.iota) |
| isSubname | open override fun isSubname(): Boolean Returns whether this name is a subname (Ex. sub.test.iota) |
| label | open override fun label(index: UInt): String? Get the label at the given index |
| labels | open override fun labels(): List<String> Get all of the labels. NOTE: These are in reverse order starting with the top-level name and proceeding to subnames. |
| numLabels | open override fun numLabels(): UInt Returns the number of labels including TLN. |
| parent | open override fun parent(): Name? parents; second-level names return None. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromStr | fun fromStr(s: String): Name |