package com.airlock.iam.servicecontainer.app.application.configuration;

public class TimeUnit {
   private final long time;
   private final String unit;

   public TimeUnit(long newTime, String newUnit) {
      this.time = newTime;
      this.unit = newUnit;
   }

   public long getTime() {
      return this.time;
   }

   public String getUnit() {
      return this.unit;
   }

   @Override
   public String toString() {
      return this.time == -1L ? "none" : this.time + " " + this.unit;
   }
}
