Record Class Cheatsheet
java.lang.Object
java.lang.Record
io.micronaut.jsonschema.generator.ref.Cheatsheet
- Record Components:
editor- An editor to modify cheatsheets
https://github.com/cheat/cheat#cheatpathscolorize- Whether cheatsheets should be colorized
https://github.com/cheat/cheat#cheatpathsstyle- A color schema applied for cheatsheets
https://github.com/cheat/cheat#cheatpathsformatter- A formatter to format cheatsheets
https://github.com/cheat/cheat#cheatpathspager- A pager to read long cheatsheets
https://github.com/cheat/cheat#cheatpathscheatpaths- Cheatpaths
https://github.com/cheat/cheat#cheatpaths
public record Cheatsheet(Object editor, boolean colorize, Cheatsheet.Style style, Cheatsheet.Formatter formatter, Object pager, List<Cheatsheet.Cheatpaths> cheatpaths)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA cheatpath
https://github.com/cheat/cheat#cheatpathsstatic enumA formatter to format cheatsheets
https://github.com/cheat/cheat#cheatpathsstatic enumA color schema applied for cheatsheets
https://github.com/cheat/cheat#cheatpaths -
Constructor Summary
ConstructorsConstructorDescriptionCheatsheet(Object editor, boolean colorize, Cheatsheet.Style style, Cheatsheet.Formatter formatter, Object pager, List<Cheatsheet.Cheatpaths> cheatpaths) Creates an instance of aCheatsheetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheatpathsrecord component.booleancolorize()Returns the value of thecolorizerecord component.editor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatterrecord component.final inthashCode()Returns a hash code value for this object.pager()Returns the value of thepagerrecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Cheatsheet
public Cheatsheet(Object editor, boolean colorize, Cheatsheet.Style style, Cheatsheet.Formatter formatter, Object pager, List<Cheatsheet.Cheatpaths> cheatpaths) Creates an instance of aCheatsheetrecord class.- Parameters:
editor- the value for theeditorrecord componentcolorize- the value for thecolorizerecord componentstyle- the value for thestylerecord componentformatter- the value for theformatterrecord componentpager- the value for thepagerrecord componentcheatpaths- the value for thecheatpathsrecord 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. -
editor
-
colorize
-
style
-
formatter
-
pager
-
cheatpaths
Returns the value of thecheatpathsrecord component.- Returns:
- the value of the
cheatpathsrecord component
-