Skip to content

Commit

Permalink
Create constructor that allows to input any String Collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 18, 2019
1 parent fb06dae commit 9717493
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.BiConsumer;
Expand All @@ -19,6 +21,12 @@
*/
public class StringListGUI
{
public StringListGUI(User user, Collection<String> value, BiConsumer<Boolean, List<String>> consumer)
{
this(user, new ArrayList<>(value), consumer);
}


public StringListGUI(User user, List<String> value, BiConsumer<Boolean, List<String>> consumer)
{
this.consumer = consumer;
Expand Down

0 comments on commit 9717493

Please sign in to comment.