Record Class InformationGroup
java.lang.Object
java.lang.Record
org.applecommander.util.InformationGroup
This is a simple group of informational items for various user interfaces.
Use the builder to assist in construction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionInformationGroup(String title, List<InformationItem> items) Creates an instance of aInformationGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InformationGroup.Builderfinal 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.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InformationGroup
Creates an instance of aInformationGrouprecord class.- Parameters:
title- the value for thetitlerecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
builder
-
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
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-