Created
July 29, 2012 20:05
-
-
Save johnmay/3201564 to your computer and use it in GitHub Desktop.
Creating a custom matcher
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new AbstractAtomMatcher(){ | |
@Override | |
public boolean matchers(IAtom query, IAtom subject) { | |
Object descriptor1 = query.getProperty("stereo.descriptor"); | |
Object descriptor2 = subject.getProperty("stereo.descriptor"); | |
return descriptor1 != null ? descriptor1.equals(descriptor2) : descriptor2 == null; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment