Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.filter
Class TypeFilter

java.lang.Object
  extended by 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

Constructor Summary
TypeFilter(TypeDefinition type)
          Create a filter matching instances associated with the given type.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean match(Instance instance)
          Determines if an instance matches the filter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d