Package google.registry.bsa.api
Record Class BlockLabel
java.lang.Object
java.lang.Record
google.registry.bsa.api.BlockLabel
public record BlockLabel(String label, BlockLabel.LabelType labelType, com.google.common.collect.ImmutableSet<String> idnTables)
extends Record
A BSA label to block. New domains with matching second-level domain (SLD) will be denied
registration in TLDs enrolled with BSA.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBlockLabel
(String label, BlockLabel.LabelType labelType, com.google.common.collect.ImmutableSet<String> idnTables) Creates an instance of aBlockLabel
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockLabel
create
(String label, BlockLabel.LabelType type, com.google.common.collect.ImmutableSet<String> idnTables) static BlockLabel
deserialize
(String text) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.google.common.collect.ImmutableSet
<String> Returns the value of theidnTables
record component.label()
Returns the value of thelabel
record component.Returns the value of thelabelType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockLabel
public BlockLabel(String label, BlockLabel.LabelType labelType, com.google.common.collect.ImmutableSet<String> idnTables) Creates an instance of aBlockLabel
record class.- Parameters:
label
- the value for thelabel
record componentlabelType
- the value for thelabelType
record componentidnTables
- the value for theidnTables
record component
-
-
Method Details
-
serialize
-
deserialize
-
create
public static BlockLabel create(String label, BlockLabel.LabelType type, com.google.common.collect.ImmutableSet<String> idnTables) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
label
Returns the value of thelabel
record component.- Returns:
- the value of the
label
record component
-
labelType
Returns the value of thelabelType
record component.- Returns:
- the value of the
labelType
record component
-
idnTables
Returns the value of theidnTables
record component.- Returns:
- the value of the
idnTables
record component
-