Package google.registry.model.domain
Class Period
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.domain.Period
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Embeddable public class Period extends ImmutableObject implements UnsafeSerializable
The "periodType" from RFC5731.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Period.Unit
The unit enum.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description Period()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Period
create(int value, Period.Unit unit)
Period.Unit
getUnit()
java.lang.Integer
getValue()
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getUnit
public Period.Unit getUnit()
-
getValue
public java.lang.Integer getValue()
-
create
public static Period create(int value, Period.Unit unit)
-
-