Package google.registry.whois
Record Class WhoisResponse.WhoisResponseResults
java.lang.Object
java.lang.Record
google.registry.whois.WhoisResponse.WhoisResponseResults
- Enclosing interface:
WhoisResponse
public static record WhoisResponse.WhoisResponseResults(String plainTextOutput, int numResults)
extends Record
A wrapper class for the plaintext response of a WHOIS command and its number of results.
-
Constructor Summary
ConstructorDescriptionWhoisResponseResults
(String plainTextOutput, int numResults) Creates an instance of aWhoisResponseResults
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.int
Returns the value of thenumResults
record component.Returns the value of theplainTextOutput
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
WhoisResponseResults
Creates an instance of aWhoisResponseResults
record class.- Parameters:
plainTextOutput
- the value for theplainTextOutput
record componentnumResults
- the value for thenumResults
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 '=='. -
plainTextOutput
Returns the value of theplainTextOutput
record component.- Returns:
- the value of the
plainTextOutput
record component
-
numResults
public int numResults()Returns the value of thenumResults
record component.- Returns:
- the value of the
numResults
record component
-