org.semanticweb.elk.util.collections.chains
Interface Matcher<I,O>

Type Parameters:
I - the input type of elements that should be matched
O - the output type of elements that satisfies the matching conditions
All Known Implementing Classes:
SimpleTypeBasedMatcher

public interface Matcher<I,O>

A class of matching an object of one type against elements of another type.

Author:
"Yevgeny Kazakov"

Method Summary
 O match(I candidate)
          Tests whether the given element satisfies the matching conditions.
 

Method Detail

match

O match(I candidate)
Tests whether the given element satisfies the matching conditions.

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.