Pulling all pending Bukkit-JavaDoc changes
A special thanks goes to @aerouk for almost all of the changes found here. By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
@@ -6,7 +6,8 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* FixedSetPrompt is the base class for any prompt that requires a fixed set response from the user.
|
||||
* FixedSetPrompt is the base class for any prompt that requires a fixed set
|
||||
* response from the user.
|
||||
*/
|
||||
public abstract class FixedSetPrompt extends ValidatingPrompt {
|
||||
|
||||
@@ -14,9 +15,11 @@ public abstract class FixedSetPrompt extends ValidatingPrompt {
|
||||
|
||||
/**
|
||||
* Creates a FixedSetPrompt from a set of strings.
|
||||
* <p>
|
||||
* foo = new FixedSetPrompt("bar", "cheese", "panda");
|
||||
*
|
||||
* @param fixedSet A fixed set of strings, one of which the user must type.
|
||||
* @param fixedSet A fixed set of strings, one of which the user must
|
||||
* type.
|
||||
*/
|
||||
public FixedSetPrompt(String... fixedSet) {
|
||||
super();
|
||||
@@ -31,9 +34,11 @@ public abstract class FixedSetPrompt extends ValidatingPrompt {
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility function to create a formatted string containing all the options declared in the constructor.
|
||||
* Utility function to create a formatted string containing all the
|
||||
* options declared in the constructor.
|
||||
*
|
||||
* @return the options formatted like "[bar, cheese, panda]" if bar, cheese, and panda were the options used
|
||||
* @return the options formatted like "[bar, cheese, panda]" if bar,
|
||||
* cheese, and panda were the options used
|
||||
*/
|
||||
protected String formatFixedSet() {
|
||||
return "[" + StringUtils.join(fixedSet, ", ") + "]";
|
||||
|
||||
Reference in New Issue
Block a user