command / me.schlaubi.regnumutils.common.formatting / FormatUtil / formatCollection

formatCollection

open static fun formatCollection(collection: MutableIterable<CharSequence!>!, prefix: CharSequence!, separator: CharSequence!, suffix: CharSequence!): String!

Formats an Iterable.

Parameters

collection - MutableIterable<CharSequence!>!: the iterable

prefix - CharSequence!: a CharSequence that gets put at the start of the formatted collection

suffix - CharSequence!: a CharSequence that gets put at the end of the formatted collection

separator - CharSequence!: a CharSequence that separates the elements

Return
String!: the formatted String