类 TimeSpan.Builder

java.lang.Object
cn.vorbote.core.time.TimeSpan.Builder
封闭类:
TimeSpan

public static class TimeSpan.Builder extends Object
Inner class Builder of TimeSpan.
  • 构造器详细资料

    • Builder

      protected Builder()
      Generate a new Builder, use protected to prevent other coders use it.
  • 方法详细资料

    • days

      public TimeSpan.Builder days(int days)
      Set the number of days between two times.
      参数:
      days - The number of days between two times.
      返回:
      Builder instance itself.
    • hours

      public TimeSpan.Builder hours(int hours)
      Set the number of hours between two times.
      参数:
      hours - The number of hours between two times.
      返回:
      Builder instance itself.
    • minutes

      public TimeSpan.Builder minutes(int minutes)
      Set the number of minutes between two times.
      参数:
      minutes - The number of minutes between two times.
      返回:
      Builder instance itself.
    • seconds

      public TimeSpan.Builder seconds(int seconds)
      Set the number of seconds between two times.
      参数:
      seconds - The number of seconds between two times.
      返回:
      Builder instance itself.
    • build

      public TimeSpan build()
      Build a TimeSpan instance.
      返回:
      A TimeSpan instance with specified data.