Package com.vaadin.pro.licensechecker
Class PreTrial
java.lang.Object
com.vaadin.pro.licensechecker.PreTrial
Represents a pre-trial state for a trial subscription, containing information
about the trial name, state, remaining days, and days until renewal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the state of a pre-trial. -
Constructor Summary
ConstructorsConstructorDescriptionPreTrial(String trialName, PreTrial.PreTrialState trialState, int daysRemaining, int daysRemainingUntilRenewal) -
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the number of days remaining in the pre-trial period.intRetrieves the number of days remaining until a new pre-trial can be started.Retrieves the name of the trial associated with this pre-trial instance.Retrieves the current state of the pre-trial instance.toString()
-
Constructor Details
-
PreTrial
public PreTrial(String trialName, PreTrial.PreTrialState trialState, int daysRemaining, int daysRemainingUntilRenewal)
-
-
Method Details
-
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
Retrieves the current state of the pre-trial instance.- Returns:
- the current
PreTrial.PreTrialStateof the pre-trial
-
toString
-