org.semanticweb.elk.util.collections.chains
Class SimpleTypeBasedMatcher<T,O>

java.lang.Object
  extended by org.semanticweb.elk.util.collections.chains.SimpleTypeBasedMatcher<T,O>
All Implemented Interfaces:
Matcher<T,O>

public class SimpleTypeBasedMatcher<T,O>
extends Object
implements Matcher<T,O>


Constructor Summary
SimpleTypeBasedMatcher(Class<O> clazz)
           
 
Method Summary
 O match(T candidate)
          Tests whether the given element satisfies the matching conditions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTypeBasedMatcher

public SimpleTypeBasedMatcher(Class<O> clazz)
Method Detail

match

public O match(T candidate)
Description copied from interface: Matcher
Tests whether the given element satisfies the matching conditions.

Specified by:
match in interface Matcher<T,O>
Parameters:
candidate - the candidate element to test
Returns:
the element which is physically equal (according to ==) to the input element, if the input element satisfies the matching condition, or null otherwise.


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.