Record Class SkillDraft
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.skill.SkillDraft
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.Returns the value of thedescriptionrecord component.enabled()Returns the value of theenabledrecord 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.slug()Returns the value of theslugrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SkillDraft
public SkillDraft(String name, String slug, String content, Boolean enabled, String description, List<String> tags) Creates an instance of aSkillDraftrecord class.- Parameters:
name- the value for thenamerecord componentslug- the value for theslugrecord componentcontent- the value for thecontentrecord componentenabled- the value for theenabledrecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
slug
Returns the value of theslugrecord component.- Returns:
- the value of the
slugrecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
tags
-