示例#1
0
 public function equals($obj)
 {
     if ($obj instanceof OffsetClock) {
         return $this->baseClock->equals($obj->baseClock) && $this->offset->equals($obj->offset);
     }
     return false;
 }
示例#2
0
 public function equals($obj)
 {
     if ($obj instanceof TickClock) {
         return $this->baseClock->equals($obj->baseClock) && $this->tickNanos == $obj->tickNanos;
     } else {
         return false;
     }
 }