Record Class NullableFrequency
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.NullableFrequency
-
Constructor Summary
ConstructorsConstructorDescriptionNullableFrequency(@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Times, @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Interval) Creates an instance of aNullableFrequencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull StringInterval()Returns the value of theIntervalrecord component.@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull StringTimes()Returns the value of theTimesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NullableFrequency
public NullableFrequency(@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Times, @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Interval) Creates an instance of aNullableFrequencyrecord class.- Parameters:
Times- the value for theTimesrecord componentInterval- the value for theIntervalrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
Times
@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull public @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Times()Returns the value of theTimesrecord component.- Returns:
- the value of the
Timesrecord component
-
Interval
@Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull public @Pattern(regexp="[pP]?\\s*(\\d+[yY])?\\s*(\\d+[wW])?\\s*(\\d+[dD])?") @NotNull String Interval()Returns the value of theIntervalrecord component.- Returns:
- the value of the
Intervalrecord component
-