ludc
2024-10-09 69f6865e4744094d657a538e9c013cb9d97df01a
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;
  }
}