MCPcopy Create free account
hub / github.com/lodborg/interval-tree / equals

Method equals

src/main/java/com/lodborg/intervaltree/Interval.java:623–641  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

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(){

Callers 4

checkMethod · 0.80
test_equalSameMethod · 0.80
containsMethod · 0.80

Calls

no outgoing calls

Tested by 3

checkMethod · 0.64
test_equalSameMethod · 0.64