getAttribute

abstract fun getAttribute(type: AttributeType): Attribute?

Gets the attribute for the specified type, or returns null if there is no attribute for the given type.

Return

the attribute, or null if not present

Parameters

type

the type of the attribute