Basically, what I want to do is check two integers against a given value, therefore, classically what you would do is something like this:
//just to get some
Here's a modification of @buc's answer that can take any number of any arguments:
public boolean oneOfEquals(T expected, T... os) { for (T o : os) { if (expected.equals(o)) return true; } return false; }