(Object obj)
| 1607 | } |
| 1608 | |
| 1609 | @Override |
| 1610 | public boolean equals(Object obj) { |
| 1611 | |
| 1612 | if (this == obj) { |
| 1613 | return true; |
| 1614 | } else if (obj instanceof Moment) { |
| 1615 | Moment that = (Moment) obj; |
| 1616 | |
| 1617 | if (this.posixTime != that.posixTime) { |
| 1618 | return false; |
| 1619 | } |
| 1620 | |
| 1621 | if (LeapSeconds.getInstance().isEnabled()) { |
| 1622 | return (this.fraction == that.fraction); |
| 1623 | } else { |
| 1624 | return (this.getNanosecond() == that.getNanosecond()); |
| 1625 | } |
| 1626 | } else { |
| 1627 | return false; |
| 1628 | } |
| 1629 | |
| 1630 | } |
| 1631 | |
| 1632 | @Override |
| 1633 | public int hashCode() { |
no test coverage detected