Determine if two UUIDs are equal. @param o the other UUID @return true if the passed object is equal to this
(Object o)
| 478 | * @return true if the passed object is equal to this |
| 479 | */ |
| 480 | public boolean equals(Object o) |
| 481 | { |
| 482 | ensureConstructed(); |
| 483 | |
| 484 | if (o instanceof UUID) |
| 485 | { |
| 486 | UUID that = (UUID) o; |
| 487 | return this == that // same object? |
| 488 | || this.m_nHash == that.m_nHash // quick check |
| 489 | && this.m_lDatetime == that.m_lDatetime |
| 490 | && this.m_nAddr1 == that.m_nAddr1 |
| 491 | && this.m_nAddr2 == that.m_nAddr2 |
| 492 | && this.m_nAddr3 == that.m_nAddr3 |
| 493 | && this.m_nAddr4 == that.m_nAddr4 |
| 494 | && this.m_nPort == that.m_nPort |
| 495 | && this.m_nCount == that.m_nCount; |
| 496 | } |
| 497 | |
| 498 | return false; |
| 499 | } |
| 500 | |
| 501 | /** |
| 502 | * Compares this object with the specified object for order. Returns a |
no test coverage detected