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 aPageComponentXOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontinuationTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.chojo.nexus.entities.CollectionAdapter
contains, isEmpty, iterator, parallelStream, size, stream, toArray, toArrayMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
PageComponentXO
Creates an instance of aPageComponentXOrecord class.- Parameters:
items- the value for theitemsrecord componentcontinuationToken- the value for thecontinuationTokenrecord component
-
-
Method Details
-
collection
- Specified by:
collectionin interfaceCollectionAdapter<ComponentXO>- Specified by:
collectionin 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 theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
continuationToken
Returns the value of thecontinuationTokenrecord component.- Returns:
- the value of the
continuationTokenrecord component
-