(Object obj)
| 621 | } |
| 622 | |
| 623 | @Override |
| 624 | public boolean equals(Object obj) { |
| 625 | if (obj == null || !(obj instanceof Interval)) |
| 626 | return false; |
| 627 | Interval<T> other = (Interval<T>) obj; |
| 628 | if (start == null ^ other.start == null) |
| 629 | return false; |
| 630 | if (end == null ^ other.end == null) |
| 631 | return false; |
| 632 | if (isEndInclusive ^ other.isEndInclusive) |
| 633 | return false; |
| 634 | if (isStartInclusive ^ other.isStartInclusive) |
| 635 | return false; |
| 636 | if (start != null && !start.equals(other.start)) |
| 637 | return false; |
| 638 | if (end != null && !end.equals(other.end)) |
| 639 | return false; |
| 640 | return true; |
| 641 | } |
| 642 | |
| 643 | |
| 644 | public Builder builder(){ |
no outgoing calls