public class IsA extends SimpleFilterFunction<Object>
| Constructor and Description |
|---|
IsA()
Default constructor - used for serialisation.
|
IsA(Class<?> type)
Create an
IsA filter that tests for instances of a given control Class. |
IsA(String type)
Create an
IsA filter that tests for instances of a given control class name. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getType() |
int |
hashCode() |
boolean |
isValid(Object input)
Tests whether the argument supplied to this method is an instance of the control class.
|
void |
setType(String type) |
IsA |
statelessClone()
Create a new
IsA filter with the same control class as this one. |
String |
toString() |
isValidgetInputClassespublic IsA()
public IsA(Class<?> type)
IsA filter that tests for instances of a given control Class.type - Control class.public IsA(String type)
IsA filter that tests for instances of a given control class name.type - Name of the control class.public void setType(String type)
type - Name of the control class.public String getType()
public IsA statelessClone()
IsA filter with the same control class as this one.statelessClone in interface FunctionstatelessClone in class FilterFunctionIsA filter.public boolean isValid(Object input)
input - Object to test.public boolean equals(Object o)
equals in class ConsumerFunctionpublic int hashCode()
hashCode in class ConsumerFunctionpublic String toString()
toString in class ConsumerFunctionCopyright © 2017. All rights reserved.