content: /*
   * Copyright (C) 2016-2023 ActionTech.
   * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
   */
  
  package com.actiontech.dble.plan.common.time;
  
  public class Interval {
      private long year;
      private long month;
      private long day;
      private long hour;
      private long minute;
      private long second;
      private long secondPart;
      private boolean neg;
  
      public Interval() {
          year = month = day = hour = minute = second = secondPart = 0;
          neg = false;
      }
  
      public long getYear() {
          return year;
      }
  
      public void setYear(long year) {
          this.year = year;
      }
  
      public long getMonth() {
          return month;
      }
  
      public void setMonth(long month) {
          this.month = month;
      }
  
      public long getDay() {
          return day;
      }
  
      public void setDay(long day) {
          this.day = day;
      }
  
      public long getHour() {
          return hour;
      }
  
      public void setHour(long hour) {
          this.hour = hour;
      }
  
      public long getMinute() {
          return minute;
      }
  
      public void setMinute(long minute) {
          this.minute = minute;
      }
  
      public long getSecond() {
          return second;
      }
  
      public void setSecond(long second) {
          this.second = second;
      }
  
      public long getSecondPart() {
          return secondPart;
      }
  
      public void setSecondPart(long secondPart) {
          this.secondPart = secondPart;
      }
  
      public boolean isNeg() {
          return neg;
      }
  
      public void setNeg(boolean neg) {
          this.neg = neg;
      }
  }
  