MCPcopy Create free account
hub / github.com/oracle/coherence / equals

Method equals

prj/coherence-core/src/main/java/com/tangosol/util/UUID.java:480–499  ·  view source on GitHub ↗

Determine if two UUIDs are equal. @param o the other UUID @return true if the passed object is equal to this

(Object o)

Source from the content-addressed store, hash-verified

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

Callers 2

mainMethod · 0.95

Calls 1

ensureConstructedMethod · 0.95

Tested by

no test coverage detected