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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
title
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
preview
-
community
-