Package google.registry.model.tld.label
Class PremiumList.PremiumEntry
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.tld.label.DomainLabelEntry<BigDecimal,PremiumList.PremiumEntry>
google.registry.model.tld.label.PremiumList.PremiumEntry
- All Implemented Interfaces:
Buildable
,Serializable
,Cloneable
,Comparable<PremiumList.PremiumEntry>
- Enclosing class:
PremiumList
@Entity(name="PremiumEntry")
public static class PremiumList.PremiumEntry
extends DomainLabelEntry<BigDecimal,PremiumList.PremiumEntry>
implements Buildable, Serializable
A premium list entry entity, persisted to Cloud SQL. Each instance represents the price of a
single label on a given TLD.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for constructingPremiumList.PremiumEntry
objects, since they are immutable.Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,
B extends Buildable.GenericBuilder<?, ?>>, Buildable.Overlayable<T> -
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PremiumList.PremiumEntry
create
(Long revisionId, BigDecimal price, String label) getValue()
Returns the value of the field (used for determining which entry takes priority over another).toString()
Returns a string view of the object, formatted like:toString
(org.joda.money.CurrencyUnit currencyUnit) Methods inherited from class google.registry.model.tld.label.DomainLabelEntry
compareTo, getDomainLabel
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toStringHelper
-
Constructor Details
-
PremiumEntry
public PremiumEntry()
-
-
Method Details
-
getValue
Description copied from class:DomainLabelEntry
Returns the value of the field (used for determining which entry takes priority over another).- Specified by:
getValue
in classDomainLabelEntry<BigDecimal,
PremiumList.PremiumEntry>
-
create
-
toString
Description copied from class:ImmutableObject
Returns a string view of the object, formatted like:ModelObject (@12345): { field1=value1 field2=[a,b,c] field3=AnotherModelObject: { foo=bar } }
- Overrides:
toString
in classImmutableObject
-
toString
-
asBuilder
-