Beispiel #1
0
 public override Clock WithZone(ZoneId zone)
 {
     if (zone.Equals(BaseClock.Zone))                 // intentional NPE
     {
         return(this);
     }
     return(new TickClock(BaseClock.WithZone(zone), TickNanos));
 }
Beispiel #2
0
 public override Clock WithZone(ZoneId zone)
 {
     if (zone.Equals(BaseClock.Zone))                 // intentional NPE
     {
         return(this);
     }
     return(new OffsetClock(BaseClock.WithZone(zone), Offset));
 }