public
Created

Creating a custom matcher

  • Download Gist
gistfile1.java
Java
1 2 3 4 5 6 7 8
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;
}
};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.