org.qi4j.api.type
Class MatchTypeSpecification

java.lang.Object
  extended by org.qi4j.api.type.MatchTypeSpecification
All Implemented Interfaces:
Specification<HasTypes>

public class MatchTypeSpecification
extends java.lang.Object
implements Specification<HasTypes>

Match Type Specification for HasTypes.


Constructor Summary
MatchTypeSpecification(java.lang.Class<?> matchType)
           
 
Method Summary
 boolean satisfiedBy(HasTypes item)
          Test whether an item matches the given specification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchTypeSpecification

public MatchTypeSpecification(java.lang.Class<?> matchType)
Method Detail

satisfiedBy

public boolean satisfiedBy(HasTypes item)
Description copied from interface: Specification
Test whether an item matches the given specification

Specified by:
satisfiedBy in interface Specification<HasTypes>
Parameters:
item - the item to be tested
Returns:
true if the item matches, false otherwise