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 standard = true;
|
||||||
|
public boolean isStandard() { return this.standard; }
|
||||||
|
|
||||||
public MassiveTreeSet<String, CaseInsensitiveComparator> exceptions = new MassiveTreeSet<String, CaseInsensitiveComparator>(CaseInsensitiveComparator.get());
|
public MassiveTreeSet<String, CaseInsensitiveComparator> exceptions = new MassiveTreeSet<String, CaseInsensitiveComparator>(CaseInsensitiveComparator.get());
|
||||||
|
|
||||||
@ -38,12 +39,17 @@ public class ExceptionSet<T>
|
|||||||
// CONTAINS
|
// CONTAINS
|
||||||
// -------------------------------------------- //
|
// -------------------------------------------- //
|
||||||
|
|
||||||
public boolean contains(String item)
|
public boolean containsString(String item)
|
||||||
{
|
{
|
||||||
if (this.exceptions.contains(item)) return ! this.standard;
|
if (this.exceptions.contains(item)) return ! this.standard;
|
||||||
return this.standard;
|
return this.standard;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean contains(String item)
|
||||||
|
{
|
||||||
|
return this.containsString(item);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean contains(T item)
|
public boolean contains(T item)
|
||||||
{
|
{
|
||||||
if (item == null) return ! this.standard;
|
if (item == null) return ! this.standard;
|
||||||
|
Loading…
Reference in New Issue
Block a user