Package jadex.commons
Class ConstantFilter<T>
- java.lang.Object
-
- jadex.commons.ConstantFilter<T>
-
-
Constructor Summary
Constructors Constructor Description ConstantFilter()
Create filter instance.ConstantFilter(boolean value)
Create filter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
filter
public boolean filter(T obj)
Test if an object passes the filter.
-
isValue
public boolean isValue()
Get the value.- Returns:
- the value.
-
setValue
public void setValue(boolean value)
Set the value.- Parameters:
value
- The value to set.
-
equals
public boolean equals(java.lang.Object obj)
Is equal?- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Hash code.- Overrides:
hashCode
in classjava.lang.Object
-
-