2021-08-16 18:26:57 +02:00
|
|
|
package com.onarandombox.MultiverseCore.display.filters;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default implementation of {@link ContentFilter} that doesn't filter anything.
|
|
|
|
*/
|
|
|
|
public class DefaultContentFilter implements ContentFilter {
|
|
|
|
|
2021-08-17 10:29:31 +02:00
|
|
|
public static DefaultContentFilter instance;
|
2021-08-16 18:26:57 +02:00
|
|
|
|
2021-08-17 10:29:31 +02:00
|
|
|
public static DefaultContentFilter getInstance() {
|
|
|
|
if (instance == null) {
|
|
|
|
instance = new DefaultContentFilter();
|
|
|
|
}
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
private DefaultContentFilter() {
|
2021-08-16 18:26:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean checkMatch(String value) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritDoc}
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public boolean needToFilter() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|