Exemplo n.º 1
0
 public static void main(String[] args) throws Exception {
   BudgetWrapper bw = new BudgetWrapper(null);
   // bw.setLocked(true, "renzo");
   Thread.sleep(6001);
   System.out.println("expired: " + bw.isLockExpired());
 }
Exemplo n.º 2
0
  public BudgetWrapper GetBudgetUnlocked() {
    BudgetWrapper unlockedBudget = new BudgetWrapper(this.budgetKey);
    unlockedBudget.setLocked(false, "", new BigDecimal(0));

    return unlockedBudget;
  }