Record Class FeatureResponse
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.feature.FeatureResponse
- Record Components:
name- Feature Nametitle- Feature titledescription- Feature descriptionpreview- Whether the feature is in preview state.community- Whether the feature is a community feature
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureResponse(String name, String title, String description, boolean preview, boolean community) Creates an instance of aFeatureResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecommunityrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanpreview()Returns the value of thepreviewrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FeatureResponse
public FeatureResponse(String name, String title, String description, boolean preview, boolean community) Creates an instance of aFeatureResponserecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentpreview- the value for thepreviewrecord componentcommunity- the value for thecommunityrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
preview
public boolean preview()Returns the value of thepreviewrecord component.- Returns:
- the value of the
previewrecord component
-
community
public boolean community()Returns the value of thecommunityrecord component.- Returns:
- the value of the
communityrecord component
-