mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 18:24:43 +02:00
Make ListFlag lists immutable
This commit is contained in:
@ -7,12 +7,13 @@ import com.github.intellectualsites.plotsquared.plot.util.StringMan;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
public abstract class ListFlag<V, F extends PlotFlag<List<V>, F>> extends PlotFlag<List<V>, F> {
|
||||
|
||||
public ListFlag(final List<V> valueList, final Captions category, final Caption description) {
|
||||
super(valueList, category, description);
|
||||
super(Collections.unmodifiableList(valueList), category, description);
|
||||
}
|
||||
|
||||
@Override public F merge(@NotNull List<V> newValue) {
|
||||
|
Reference in New Issue
Block a user