Package org.cy3sbml.commands
Record Class Commands.Command
java.lang.Object
java.lang.Record
org.cy3sbml.commands.Commands.Command
- Enclosing class:
- Commands
public static record Commands.Command(String name, String description, String longDescription, String exampleJson, org.cytoscape.work.TaskFactory factory)
extends Record
A command: its name in the namespace, descriptions, an example of its JSON result, and
the task factory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexampleJsonrecord component.org.cytoscape.work.TaskFactoryfactory()Returns the value of thefactoryrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelongDescriptionrecord component.name()Returns the value of thenamerecord component.The service properties that register the task factory as the command.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Command
public Command(String name, String description, String longDescription, String exampleJson, org.cytoscape.work.TaskFactory factory) Creates an instance of aCommandrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentlongDescription- the value for thelongDescriptionrecord componentexampleJson- the value for theexampleJsonrecord componentfactory- the value for thefactoryrecord component
-
-
Method Details
-
properties
The service properties that register the task factory as the command. -
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
longDescription
Returns the value of thelongDescriptionrecord component.- Returns:
- the value of the
longDescriptionrecord component
-
exampleJson
Returns the value of theexampleJsonrecord component.- Returns:
- the value of the
exampleJsonrecord component
-
factory
public org.cytoscape.work.TaskFactory factory()Returns the value of thefactoryrecord component.- Returns:
- the value of the
factoryrecord component
-