@startuml
'Attribute syntax: <visibility> <name> : <type> <multiplicity> = <default>
'Method syntax: <visibility> <name (parameter-list)> : <return-type> - For simplicity the type of the parameter-list is not specified

class TaxIdentificationNumber {
    -tin : long {readOnly}

    +TaxIdentificationNumber(tin : long)
    +validateTin(number : long) : boolean
    +getTin() : long
    +equals(object: TaxIdentificationNumber) : boolean
    +hashCode() : int
}

@enduml