Add another ExceptionSet constructor

This commit is contained in:
Olof Larsson 2016-01-11 17:41:41 +01:00
parent d3b2dac30e
commit ae906f18aa

View File

@ -1,5 +1,7 @@
package com.massivecraft.massivecore.collections;
import java.util.Arrays;
import com.massivecraft.massivecore.CaseInsensitiveComparator;
public class ExceptionSet<T>
@ -26,6 +28,12 @@ public class ExceptionSet<T>
this.standard = standard;
}
public ExceptionSet(boolean standard, String... exceptions)
{
this.standard = standard;
this.exceptions.addAll(Arrays.asList(exceptions));
}
// -------------------------------------------- //
// CONTAINS
// -------------------------------------------- //