@Override public boolean equals(Object obj) { if (obj instanceof IrMask) { IrMask other = (IrMask) obj; return set.equals(other.set) & from == other.from && to == other.to && super.equals(other); } return false; }
@Override public int hashCode() { return set.hashCode() ^ from ^ to; }