Create a gist now

Instantly share code, notes, and snippets.

Creating a custom matcher
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