Package de.chojo.nexus.entities
Record Class PageComponentXO
java.lang.Object
java.lang.Record
de.chojo.nexus.entities.PageComponentXO
- All Implemented Interfaces:
CollectionAdapter<ComponentXO>
,CollectionProvider<ComponentXO>
,Iterable<ComponentXO>
public record PageComponentXO(List<ComponentXO> items, String continuationToken)
extends Record
implements CollectionAdapter<ComponentXO>
-
Constructor Summary
ConstructorsConstructorDescriptionPageComponentXO
(List<ComponentXO> items, String continuationToken) Creates an instance of aPageComponentXO
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinuationToken
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.items()
Returns the value of theitems
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.chojo.nexus.entities.CollectionAdapter
contains, isEmpty, iterator, parallelStream, size, stream, toArray, toArray
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PageComponentXO
Creates an instance of aPageComponentXO
record class.- Parameters:
items
- the value for theitems
record componentcontinuationToken
- the value for thecontinuationToken
record component
-
-
Method Details
-
collection
- Specified by:
collection
in interfaceCollectionAdapter<ComponentXO>
- Specified by:
collection
in interfaceCollectionProvider<ComponentXO>
-
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)
. -
items
Returns the value of theitems
record component.- Returns:
- the value of the
items
record component
-
continuationToken
Returns the value of thecontinuationToken
record component.- Returns:
- the value of the
continuationToken
record component
-