Record Class Contents.Part
java.lang.Object
java.lang.Record
ai.redouble.docs.Contents.Part
- Enclosing class:
Contents
public static record Contents.Part(String title, String intro, List<Contents.Entry> entries)
extends Record
- Since:
- 0.1 (2026-09-27)
- Author:
- Andrey Santrosyan
-
Constructor Summary
ConstructorsConstructorDescriptionPart(String title, String intro, List<Contents.Entry> entries) Creates an instance of aPartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intro()Returns the value of theintrorecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Part
Creates an instance of aPartrecord class.- Parameters:
title- the value for thetitlerecord componentintro- the value for theintrorecord componententries- the value for theentriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
intro
Returns the value of theintrorecord component.- Returns:
- the value of the
introrecord component
-
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-