Package google.registry.rdap
Record Class RdapResultSet<T extends EppResource>
java.lang.Object
java.lang.Record
google.registry.rdap.RdapResultSet<T>
- Record Components:
resources
- List of EPP resources.incompletenessWarningType
- Type of warning to display regarding possible incomplete data.numResourcesRetrieved
- Number of resources retrieved from the database in the process of assembling the data set.
public record RdapResultSet<T extends EppResource>(com.google.common.collect.ImmutableList<T extends EppResource> resources, google.registry.rdap.RdapSearchResults.IncompletenessWarningType incompletenessWarningType, int numResourcesRetrieved)
extends Record
RDAP result set.
-
Constructor Summary
ConstructorsConstructorDescriptionRdapResultSet
(com.google.common.collect.ImmutableList<T> resources, google.registry.rdap.RdapSearchResults.IncompletenessWarningType incompletenessWarningType, int numResourcesRetrieved) Creates an instance of aRdapResultSet
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.google.registry.rdap.RdapSearchResults.IncompletenessWarningType
Returns the value of theincompletenessWarningType
record component.int
Returns the value of thenumResourcesRetrieved
record component.com.google.common.collect.ImmutableList
<T> Returns the value of theresources
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RdapResultSet
public RdapResultSet(com.google.common.collect.ImmutableList<T> resources, google.registry.rdap.RdapSearchResults.IncompletenessWarningType incompletenessWarningType, int numResourcesRetrieved) Creates an instance of aRdapResultSet
record class.- Parameters:
resources
- the value for theresources
record componentincompletenessWarningType
- the value for theincompletenessWarningType
record componentnumResourcesRetrieved
- the value for thenumResourcesRetrieved
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
resources
Returns the value of theresources
record component.- Returns:
- the value of the
resources
record component
-
incompletenessWarningType
public google.registry.rdap.RdapSearchResults.IncompletenessWarningType incompletenessWarningType()Returns the value of theincompletenessWarningType
record component.- Returns:
- the value of the
incompletenessWarningType
record component
-
numResourcesRetrieved
public int numResourcesRetrieved()Returns the value of thenumResourcesRetrieved
record component.- Returns:
- the value of the
numResourcesRetrieved
record component
-