Modifier and Type | Field and Description |
---|---|
protected boolean |
value
The return value.
|
Constructor and Description |
---|
ConstantFilter()
Create filter instance.
|
ConstantFilter(boolean value)
Create filter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Is equal?
|
boolean |
filter(T obj)
Test if an object passes the filter.
|
int |
hashCode()
Hash code.
|
boolean |
isValue()
Get the value.
|
void |
setValue(boolean value)
Set the value.
|
public ConstantFilter()
public ConstantFilter(boolean value)
public boolean filter(T obj)
public boolean isValue()
public void setValue(boolean value)
value
- The value to set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object