Record Class FeatureResponse
java.lang.Object
java.lang.Record
io.micronaut.projectgen.core.feature.FeatureResponse
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureResponse
(String name, String title, String description, boolean preview, boolean community) Creates an instance of aFeatureResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of thecommunity
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.boolean
preview()
Returns the value of thepreview
record component.title()
Returns the value of thetitle
record component.final String
toString()
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 aFeatureResponse
record class.- Parameters:
name
- the value for thename
record componenttitle
- the value for thetitle
record componentdescription
- the value for thedescription
record componentpreview
- the value for thepreview
record componentcommunity
- the value for thecommunity
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
title
Returns the value of thetitle
record component.- Returns:
- the value of the
title
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
preview
public boolean preview()Returns the value of thepreview
record component.- Returns:
- the value of the
preview
record component
-
community
public boolean community()Returns the value of thecommunity
record component.- Returns:
- the value of the
community
record component
-