mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 23:26:45 +01:00
Make ListFlag lists immutable
This commit is contained in:
parent
3a694c458c
commit
e9c69dc80c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user