Another ExceptionSet method
This commit is contained in:
parent
ae906f18aa
commit
18bc7dc9db
@ -11,6 +11,7 @@ public class ExceptionSet<T>
|
||||
// -------------------------------------------- //
|
||||
|
||||
public boolean standard = true;
|
||||
public boolean isStandard() { return this.standard; }
|
||||
|
||||
public MassiveTreeSet<String, CaseInsensitiveComparator> exceptions = new MassiveTreeSet<String, CaseInsensitiveComparator>(CaseInsensitiveComparator.get());
|
||||
|
||||
@ -38,11 +39,16 @@ public class ExceptionSet<T>
|
||||
// CONTAINS
|
||||
// -------------------------------------------- //
|
||||
|
||||
public boolean contains(String item)
|
||||
public boolean containsString(String item)
|
||||
{
|
||||
if (this.exceptions.contains(item)) return ! this.standard;
|
||||
return this.standard;
|
||||
}
|
||||
|
||||
public boolean contains(String item)
|
||||
{
|
||||
return this.containsString(item);
|
||||
}
|
||||
|
||||
public boolean contains(T item)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user