Class RVDateRule

java.lang.Object
io.revealbi.core.RVDateRule

public class RVDateRule extends Object
A class that represents a date rule for a filter.
  • Constructor Details

    • RVDateRule

      public RVDateRule(RVPeriodRelation periodRelation, RVPeriodType periodType)
      Create a date rule with the specified period relation and period type.
    • RVDateRule

      public RVDateRule(RVPeriodRelation periodRelation, int periodCount, RVPeriodType periodType)
      Create a date rule with the specified period relation, count and period type.
  • Method Details

    • getPeriodRelation

      public RVPeriodRelation getPeriodRelation()
      Relation of the rule's time period to the current date.
    • getPeriodType

      public RVPeriodType getPeriodType()
      Type of time period used as time unit for the rule's period.
    • getCount

      public int getCount()
      Amount of periods to be counted.