Package br.unip.aps.ui.componentes
Record Class PaletaComandos.Comando
java.lang.Object
java.lang.Record
br.unip.aps.ui.componentes.PaletaComandos.Comando
- Enclosing class:
PaletaComandos
public static record PaletaComandos.Comando(String titulo, String detalhe, String categoria, String icone, Runnable acao)
extends Record
Um item executavel da paleta.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacao()Returns the value of theacaorecord component.Returns the value of thecategoriarecord component.detalhe()Returns the value of thedetalherecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icone()Returns the value of theiconerecord component.titulo()Returns the value of thetitulorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Comando
Creates an instance of aComandorecord class.- Parameters:
titulo- the value for thetitulorecord componentdetalhe- the value for thedetalherecord componentcategoria- the value for thecategoriarecord componenticone- the value for theiconerecord componentacao- the value for theacaorecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
titulo
Returns the value of thetitulorecord component.- Returns:
- the value of the
titulorecord component
-
detalhe
Returns the value of thedetalherecord component.- Returns:
- the value of the
detalherecord component
-
categoria
Returns the value of thecategoriarecord component.- Returns:
- the value of the
categoriarecord component
-
icone
Returns the value of theiconerecord component.- Returns:
- the value of the
iconerecord component
-
acao
Returns the value of theacaorecord component.- Returns:
- the value of the
acaorecord component
-