eu.esdihumboldt.hale.common.filter
Class TypeFilter
java.lang.Object
eu.esdihumboldt.hale.common.filter.TypeFilter
- All Implemented Interfaces:
- Filter
public class TypeFilter
- extends Object
- implements Filter
Filter that matches instances with a certain associated type.
- Author:
- Simon Templer
TypeFilter
public TypeFilter(TypeDefinition type)
- Create a filter matching instances associated with the given type.
- Parameters:
type
- the type definition to match, if null
any type
associated with an instance will be a match
match
public boolean match(Instance instance)
- Description copied from interface:
Filter
- Determines if an instance matches the filter.
- Specified by:
match
in interface Filter
- Parameters:
instance
- the instance to check the filter against
- Returns:
true
if the given instance matches the filter,
false
otherwise- See Also:
Filter.match(Instance)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
- See Also:
Object.hashCode()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
- See Also:
Object.equals(java.lang.Object)
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d