yuxc
2024-07-19 d5a7068f6da8a092222ec7e73f749d4fba945dd9
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;
  }
}