Class TimeTicksParameters

java.lang.Object
com.amalgamasimulation.charts.axes.ticks.TimeTicksParameters

public class TimeTicksParameters extends Object
Class that represents the frequency calculated by time units.
Author:
Aleksey Kirillov
  • Field Details

  • Constructor Details

    • TimeTicksParameters

      public TimeTicksParameters(int amount, ChronoUnit timeUnit)
      Constructs a frequency descriptor with a given amount of given time unit.
      Parameters:
      amount - amount of time units
      timeUnit - time unit
  • Method Details

    • getAmount

      public int getAmount()
      Returns the amount of time units.
      Returns:
      the amount of time units
    • getTimeUnit

      public ChronoUnit getTimeUnit()
      Returns the time unit.
      Returns:
      time unit
    • plusTo

      public LocalDateTime plusTo(LocalDateTime localDateTime)
      Returns a copy of date-time with this amount of this time units added.
      Parameters:
      localDateTime - the date-time to which the addition is made
      Returns:
      a copy of date-time with this amount of this time units added
    • minusFrom

      public LocalDateTime minusFrom(LocalDateTime localDateTime)
      Returns a copy of date-time with this amount of this time units subtracted.
      Parameters:
      localDateTime - the date-time to which the addition is made
      Returns:
      a copy of date-time with this amount of this time units subtracted