Permalink
Browse files

Fix docs for uuid

  • Loading branch information...
LadyCailin committed Nov 28, 2018
1 parent 6cb2e61 commit 676db513a5fbf489688d81ac5e62caf0053c5eb6
@@ -254,6 +254,7 @@ public static String Join(Object[] list, String glue, String lastGlue, String gl
/**
* Joins an array together (using StringBuilder's {
*
* @param <T> The array type
* @see StringBuilder#append(Object)} method to "toString" the Object) using the specified string for glue. If
* lastGlue is null, it is the same as glue, but otherwise it is used to glue just the last two items together,
* which is useful for lists that are being read by a human, to have a proper conjunction at the end.
@@ -267,11 +268,11 @@ public static String Join(Object[] list, String glue, String lastGlue, String gl
* used by default on each item.
* @return The concatenated string
*/
public static String Join(final Object[] list, String glue, String lastGlue, String glueForTwoItems, String empty, Renderer<Object> renderer) {
return doJoin(new ItemGetter<Object>() {
public static <T> String Join(final T[] list, String glue, String lastGlue, String glueForTwoItems, String empty, Renderer<T> renderer) {
return doJoin(new ItemGetter<T>() {
@Override
public Object get(int index) {
public T get(int index) {
return list[index];
}
@@ -2563,9 +2563,8 @@ public String docs() {
+ " type, some types do not require an argument, in which case, this parameter will be ignored."
+ " <code>type</code> may be one of:\n- " + StringUtils.Join(UUIDType.values(), "\n- ", "\n- ",
"\n- ", "",
(Object item) -> {
UUIDType type = (UUIDType) item;
return type.description + ". This type takes "
(UUIDType type) -> {
return type.name() + " - " + type.description + ". This type takes "
+ StringUtils.PluralTemplateHelper(type.parameters, "%d argument.",
"%d arguments.");
});

0 comments on commit 676db51

Please sign in to comment.