wangting
2024-10-22 fc7f59bcd94cebfcc3b2a1278984a3bb7b39edaa
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;
  }
}