Class FixedClock

java.lang.Object
java.time.Clock
net.sodacan.core.util.FixedClock
All Implemented Interfaces:
InstantSource

public class FixedClock extends Clock
  • Constructor Details

    • FixedClock

      public FixedClock()
      If you just need a clock that doesn't move, without calling advanceClock, use this constructor
    • FixedClock

      public FixedClock(Instant fixedInstant)
      If you need a clock that is fixed based on an instant that you provide, use this one
      Parameters:
      fixedInstant -
  • Method Details