wangting
2024-05-27 a9bbbe822377536e6f3374b05e2b64b12b2f188c
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;
  }
}