Class PreTrial

java.lang.Object
com.vaadin.pro.licensechecker.PreTrial

public final class PreTrial extends Object
Represents a pre-trial state for a trial subscription, containing information about the trial name, state, remaining days, and days until renewal.
  • Constructor Details

  • Method Details

    • getTrialName

      public String getTrialName()
      Retrieves the name of the trial associated with this pre-trial instance.
      Returns:
      the trial name as a String, never null
    • getDaysRemaining

      public int getDaysRemaining()
      Retrieves the number of days remaining in the pre-trial period.
      Returns:
      the number of pre-trial remaining days
    • getDaysRemainingUntilRenewal

      public int getDaysRemainingUntilRenewal()
      Retrieves the number of days remaining until a new pre-trial can be started.
      Returns:
      the number of days remaining until pre-trial can be renewed.
    • getTrialState

      public PreTrial.PreTrialState getTrialState()
      Retrieves the current state of the pre-trial instance.
      Returns:
      the current PreTrial.PreTrialState of the pre-trial
    • toString

      public String toString()
      Overrides:
      toString in class Object