(ZonalOffset obj)
| 639 | * <p>Die natürliche Ordnung ist konsistent mit {@code equals()}. </p> |
| 640 | */ |
| 641 | @Override |
| 642 | public int compareTo(ZonalOffset obj) { |
| 643 | |
| 644 | if (this.total < obj.total) { |
| 645 | return -1; |
| 646 | } else if (this.total > obj.total) { |
| 647 | return 1; |
| 648 | } else { |
| 649 | int delta = (this.fraction - obj.fraction); |
| 650 | return ((delta < 0) ? -1 : ((delta == 0) ? 0 : 1)); |
| 651 | } |
| 652 | |
| 653 | } |
| 654 | |
| 655 | /** |
| 656 | * <p>Compares the whole state. </p> |
no outgoing calls