Record Class AutocommandOpts
java.lang.Object
java.lang.Record
com.ensarsarajcic.neovim.java.pluginhost.opts.AutocommandOpts
-
Constructor Summary
ConstructorsConstructorDescriptionAutocommandOpts(String group, String pattern, String description, boolean once, boolean nested, boolean sync) Creates an instance of aAutocommandOptsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static AutocommandOptsfromAnnotation(NeovimAutocommand autocommand) group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.booleannested()Returns the value of thenestedrecord component.booleanonce()Returns the value of theoncerecord component.pattern()Returns the value of thepatternrecord component.booleansync()Returns the value of thesyncrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AutocommandOpts
public AutocommandOpts(String group, String pattern, String description, boolean once, boolean nested, boolean sync) Creates an instance of aAutocommandOptsrecord class.- Parameters:
group- the value for thegrouprecord componentpattern- the value for thepatternrecord componentdescription- the value for thedescriptionrecord componentonce- the value for theoncerecord componentnested- the value for thenestedrecord componentsync- the value for thesyncrecord component
-
-
Method Details
-
fromAnnotation
-
toNeovimOptions
-
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 '=='. -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
pattern
Returns the value of thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
once
public boolean once()Returns the value of theoncerecord component.- Returns:
- the value of the
oncerecord component
-
nested
public boolean nested()Returns the value of thenestedrecord component.- Returns:
- the value of the
nestedrecord component
-
sync
public boolean sync()Returns the value of thesyncrecord component.- Returns:
- the value of the
syncrecord component
-