Package google.registry.reporting.spec11
Record Class RegistrarThreatMatches
java.lang.Object
java.lang.Record
google.registry.reporting.spec11.RegistrarThreatMatches
public record RegistrarThreatMatches(String clientId, com.google.common.collect.ImmutableList<ThreatMatch> threatMatches)
extends Record
Value record representing the registrar and list-of-threat-matches pair stored in GCS.
-
Constructor Summary
ConstructorDescriptionRegistrarThreatMatches
(String clientId, com.google.common.collect.ImmutableList<ThreatMatch> threatMatches) Creates an instance of aRegistrarThreatMatches
record class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()
Returns the value of theclientId
record component.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.ImmutableList
<ThreatMatch> Returns the value of thethreatMatches
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RegistrarThreatMatches
public RegistrarThreatMatches(String clientId, com.google.common.collect.ImmutableList<ThreatMatch> threatMatches) Creates an instance of aRegistrarThreatMatches
record class.- Parameters:
clientId
- the value for theclientId
record componentthreatMatches
- the value for thethreatMatches
record component
-
-
Method Details
-
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)
. -
clientId
Returns the value of theclientId
record component.- Returns:
- the value of the
clientId
record component
-
threatMatches
Returns the value of thethreatMatches
record component.- Returns:
- the value of the
threatMatches
record component
-