Skip to content

Commit

Permalink
Добавлен метод NumeralSystem#toString()
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenchukov committed Aug 28, 2022
1 parent f46160b commit f0bf19f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,16 @@ public Numerable getNumeralSystem()
{
return this.numeralSystem;
}

/**
* Возвращает название константы.
*
* @return Название константы.
*/
@NotNull
@Override
public String toString()
{
return this.name().replace('_', ' ');
}
}

0 comments on commit f0bf19f

Please sign in to comment.