Add correct @since tag to ListFormatter
This commit is contained in:
parent
781f1c113c
commit
43e038d3ec
1 changed files with 7 additions and 2 deletions
|
@ -27,13 +27,14 @@ import java.util.Set;
|
|||
|
||||
/**
|
||||
* Converts various data types to {@link String}s.
|
||||
* This class is unfinished.
|
||||
*
|
||||
* @since v1-alpha0
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public final class ListFormatter {
|
||||
/**
|
||||
* Constructs this class.
|
||||
*
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public ListFormatter() {}
|
||||
|
||||
|
@ -42,6 +43,7 @@ public final class ListFormatter {
|
|||
*
|
||||
* @param array array to convert
|
||||
* @return formatted string
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public static @NotNull String formatArray(@NotNull Object[] array) {
|
||||
StringBuilder output = new StringBuilder();
|
||||
|
@ -64,6 +66,7 @@ public final class ListFormatter {
|
|||
*
|
||||
* @param set set to convert
|
||||
* @return formatted string
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public static @NotNull String formatSet(@NotNull Set<?> set) {
|
||||
return formatArray(set.toArray());
|
||||
|
@ -74,6 +77,7 @@ public final class ListFormatter {
|
|||
*
|
||||
* @param list list to convert
|
||||
* @return formatted string
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public static @NotNull String formatList(@NotNull List<?> list) {
|
||||
return formatArray(list.toArray());
|
||||
|
@ -84,6 +88,7 @@ public final class ListFormatter {
|
|||
*
|
||||
* @param map map to convert
|
||||
* @return formatted string
|
||||
* @since v1-alpha4
|
||||
*/
|
||||
public static @NotNull String formatMap(@NotNull Map<?, ?> map) {
|
||||
StringBuilder output = new StringBuilder();
|
||||
|
|
Loading…
Reference in a new issue