It may be more readable to write this as:

```
return (bound == Bound.EXACTLY && other.bound != Bound.EXACTLY) || 
       (bound != Bound.EXACTLY && other.bound == Bound.EXACTLY);
```