wangting
2024-09-27 1d8ffe35090c3e541dc2e0d9a26a4ef1c853d3b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package org.jbpm.pvm.internal.util;
 
import java.util.Date;
 
public abstract class Clock {
  
  protected static Date currentTime = null;
  
  public static Date getCurrentTime() {
    if (currentTime==null) {
      return new Date();
    }
    return currentTime;
  }
  
  public static void setCurrentTime(Date currentTime) {
    Clock.currentTime = currentTime;
  }
}