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 booleanequals(java.lang.Object obj)Is equal?booleanfilter(T obj)Test if an object passes the filter.inthashCode()Hash code.booleanisValue()Get the value.voidsetValue(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Hash code.- Overrides:
hashCodein classjava.lang.Object
-
-