Skip to content

Commit

Permalink
Finish NumberFormat Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Jun 22, 2024
1 parent 26b53ef commit 9553990
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,35 @@
*/
public interface NumberFormat {

/**
* Returns blank format where scores are completely hidden.
*
* @return Blank number format
*/
@NotNull
static NumberFormat blank() {
return BlankFormat.INSTANCE;
}

/**
* Returns styled format where scores use given style.
*
* @param style
* Style to use for scores
* @return Styled format with given style
*/
@NotNull
static NumberFormat styled(@NotNull Style style) {
return new StyledFormat(style);
}

/**
* Returns fixed format where scores are replaced with given text.
*
* @param text
* Text to replace scores with
* @return Fixed format with given text
*/
@NotNull
static NumberFormat fixed(@NotNull Component text) {
return new FixedFormat(text);
Expand Down

0 comments on commit 9553990

Please sign in to comment.