Refactor ResultInfo to use Java record
Replaced the ResultInfo class with a Java record for conciseness and immutability. Adjusted related validation logic and method calls to align with the new record structure. Minor updates to Javadoc documentation were also included.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Generated by javadoc (21) on Sat Apr 26 17:44:38 CEST 2025 -->
|
||||
<!-- Generated by javadoc (21) on Sat Apr 26 18:39:33 CEST 2025 -->
|
||||
<title>Index (CloudflareDNS-java 0.2.0-SNAPSHOT API)</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
@@ -51,7 +51,13 @@ loadScripts(document, 'script');</script>
|
||||
<div class="header">
|
||||
<h1>Index</h1>
|
||||
</div>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:L">L</a> <a href="#I:M">M</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Z">Z</a> <br><a href="allclasses-index.html">Alle Klassen und Schnittstellen</a><span class="vertical-separator">|</span><a href="allpackages-index.html">Alle Packages</a><span class="vertical-separator">|</span><a href="serialized-form.html">Serialisierte Form</a>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a
|
||||
href="#I:E">E</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:L">L</a> <a
|
||||
href="#I:M">M</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a
|
||||
href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a
|
||||
href="#I:V">V</a> <a href="#I:Z">Z</a> <br><a href="allclasses-index.html">Alle Klassen und Schnittstellen</a><span
|
||||
class="vertical-separator">|</span><a href="allpackages-index.html">Alle Packages</a><span
|
||||
class="vertical-separator">|</span><a href="serialized-form.html">Serialisierte Form</a>
|
||||
<h2 class="title" id="I:A">A</h2>
|
||||
<dl class="index">
|
||||
<dt><a href="codes/thischwa/cf/model/RecordType.html#A" class="member-name-link">A</a> - Enum-Konstante in Enum-Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/RecordType.html" title="Enum-Klasse in codes.thischwa.cf.model">RecordType</a></dt>
|
||||
@@ -178,6 +184,12 @@ loadScripts(document, 'script');</script>
|
||||
<dt><a href="codes/thischwa/cf/model/package-summary.html">codes.thischwa.cf.model</a> - Package codes.thischwa.cf.model</dt>
|
||||
<dd>
|
||||
<div class="block">The model of CloudflareDNS-java.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#count()" class="member-name-link">count()</a> - Methode in
|
||||
Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gibt den Wert für die Datensatzkomponente <code>count</code> zurück.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="title" id="I:D">D</h2>
|
||||
@@ -195,6 +207,16 @@ loadScripts(document, 'script');</script>
|
||||
<dd>
|
||||
<div class="block">Represents the DNS DS (Delegation Signer) record type.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="title" id="I:E">E</h2>
|
||||
<dl class="index">
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#equals(java.lang.Object)" class="member-name-link">equals(Object)</a>
|
||||
- Methode in Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Gibt an, ob ein anderes Objekt diesem gleich ("equal to") ist.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="title" id="I:G">G</h2>
|
||||
<dl class="index">
|
||||
@@ -209,6 +231,12 @@ loadScripts(document, 'script');</script>
|
||||
</dl>
|
||||
<h2 class="title" id="I:H">H</h2>
|
||||
<dl class="index">
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#hashCode()" class="member-name-link">hashCode()</a> - Methode
|
||||
in Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gibt einen Hashcodewert für diese Objekt zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/RecordType.html#HTTPS" class="member-name-link">HTTPS</a> - Enum-Konstante in Enum-Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/RecordType.html" title="Enum-Klasse in codes.thischwa.cf.model">RecordType</a></dt>
|
||||
<dd>
|
||||
<div class="block">Represents the DNS HTTPS (HTTP Service) record type.</div>
|
||||
@@ -252,9 +280,21 @@ loadScripts(document, 'script');</script>
|
||||
</dl>
|
||||
<h2 class="title" id="I:P">P</h2>
|
||||
<dl class="index">
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#page()" class="member-name-link">page()</a> - Methode in
|
||||
Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gibt den Wert für die Datensatzkomponente <code>page</code> zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/PagingRequest.html" class="type-name-link" title="Klasse in codes.thischwa.cf.model">PagingRequest</a> - Klasse in <a href="codes/thischwa/cf/model/package-summary.html">codes.thischwa.cf.model</a></dt>
|
||||
<dd>
|
||||
<div class="block">Represents a request model for paginated data.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#perPage()" class="member-name-link">perPage()</a> - Methode in
|
||||
Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gibt den Wert für die Datensatzkomponente <code>perPage</code> zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/RecordType.html#PTR" class="member-name-link">PTR</a> - Enum-Konstante in Enum-Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/RecordType.html" title="Enum-Klasse in codes.thischwa.cf.model">RecordType</a></dt>
|
||||
<dd>
|
||||
@@ -369,12 +409,27 @@ loadScripts(document, 'script');</script>
|
||||
title="Klasse in codes.thischwa.cf.model">ResponseResultInfo</a>
|
||||
</dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html" class="type-name-link" title="Klasse in codes.thischwa.cf.model">ResultInfo</a> - Klasse in <a href="codes/thischwa/cf/model/package-summary.html">codes.thischwa.cf.model</a></dt>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html" class="type-name-link"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a> - Datensatzklasse in <a
|
||||
href="codes/thischwa/cf/model/package-summary.html">codes.thischwa.cf.model</a></dt>
|
||||
<dd>
|
||||
<div class="block">Represents metadata for paginated results.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#%3Cinit%3E()" class="member-name-link">ResultInfo()</a> - Konstruktor für Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html" title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#%3Cinit%3E(int)" class="member-name-link">ResultInfo(int)</a> -
|
||||
Konstruktor für Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Constructs a ResultInfo instance with the specified total count and default values for other
|
||||
fields.
|
||||
</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#%3Cinit%3E(int,int,int,int,int)" class="member-name-link">ResultInfo(int,
|
||||
int, int, int, int)</a> - Konstruktor für Datensatzklasse codes.thischwa.cf.model.<a
|
||||
href="codes/thischwa/cf/model/ResultInfo.html" title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Erstellt eine Instanz einer Datensatzklasse <code>ResultInfo</code>.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<h2 class="title" id="I:S">S</h2>
|
||||
<dl class="index">
|
||||
@@ -422,6 +477,26 @@ loadScripts(document, 'script');</script>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/RecordType.html#toString()" class="member-name-link">toString()</a> - Methode in Enum-Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/RecordType.html" title="Enum-Klasse in codes.thischwa.cf.model">RecordType</a></dt>
|
||||
<dd> </dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#toString()" class="member-name-link">toString()</a> - Methode
|
||||
in Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a></dt>
|
||||
<dd>
|
||||
<div class="block">Gibt eine Zeichenfolgendarstellung dieser Datensatzklasse zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#totalCount()" class="member-name-link">totalCount()</a> -
|
||||
Methode in Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Gibt den Wert für die Datensatzkomponente <code>totalCount</code> zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/ResultInfo.html#totalPages()" class="member-name-link">totalPages()</a> -
|
||||
Methode in Datensatzklasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/ResultInfo.html"
|
||||
title="Klasse in codes.thischwa.cf.model">ResultInfo</a>
|
||||
</dt>
|
||||
<dd>
|
||||
<div class="block">Gibt den Wert für die Datensatzkomponente <code>totalPages</code> zurück.</div>
|
||||
</dd>
|
||||
<dt><a href="codes/thischwa/cf/model/RecordType.html#TXT" class="member-name-link">TXT</a> - Enum-Konstante in Enum-Klasse codes.thischwa.cf.model.<a href="codes/thischwa/cf/model/RecordType.html" title="Enum-Klasse in codes.thischwa.cf.model">RecordType</a></dt>
|
||||
<dd>
|
||||
<div class="block">Represents the TXT DNS record type.</div>
|
||||
@@ -495,7 +570,13 @@ der Reihenfolge ihrer Deklaration zurück.</div>
|
||||
<div class="block">Constructs a new ZoneMultipleResponse object.</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:L">L</a> <a href="#I:M">M</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a href="#I:V">V</a> <a href="#I:Z">Z</a> <br><a href="allclasses-index.html">Alle Klassen und Schnittstellen</a><span class="vertical-separator">|</span><a href="allpackages-index.html">Alle Packages</a><span class="vertical-separator">|</span><a href="serialized-form.html">Serialisierte Form</a></main>
|
||||
<a href="#I:A">A</a> <a href="#I:B">B</a> <a href="#I:C">C</a> <a href="#I:D">D</a> <a
|
||||
href="#I:E">E</a> <a href="#I:G">G</a> <a href="#I:H">H</a> <a href="#I:L">L</a> <a
|
||||
href="#I:M">M</a> <a href="#I:N">N</a> <a href="#I:O">O</a> <a href="#I:P">P</a> <a
|
||||
href="#I:R">R</a> <a href="#I:S">S</a> <a href="#I:T">T</a> <a href="#I:U">U</a> <a
|
||||
href="#I:V">V</a> <a href="#I:Z">Z</a> <br><a href="allclasses-index.html">Alle Klassen und Schnittstellen</a><span
|
||||
class="vertical-separator">|</span><a href="allpackages-index.html">Alle Packages</a><span
|
||||
class="vertical-separator">|</span><a href="serialized-form.html">Serialisierte Form</a></main>
|
||||
<footer role="contentinfo">
|
||||
<hr>
|
||||
<p class="legal-copy"><small>Copyright © 2025. All rights reserved.</small></p>
|
||||
|
||||
Reference in New Issue
Block a user