Attribute

com.phasmidsoftware.number.top.Attribute
trait Attribute

A trait representing a generic attribute with an integer mapping.

Implementations of this trait are expected to provide a concrete definition of the toInt method, which maps the attribute to a corresponding integer value. This may be used for comparison, serialization, or other domain-specific purposes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
enum Color
enum Number
enum Shading
enum Shape

Members list

Value members

Abstract methods

def toInt: Int