Record Class GenVsCodeProjectTask.VsCodeConfiguration

java.lang.Object
java.lang.Record
net.fabricmc.loom.task.GenVsCodeProjectTask.VsCodeConfiguration
All Implemented Interfaces:
Serializable
Enclosing class:
GenVsCodeProjectTask

public static record GenVsCodeProjectTask.VsCodeConfiguration(String type, String name, String id, String request, String cwd, String console, boolean stopOnEntry, String mainClass, String vmArgs, String args, Map<String,Object> env, String projectName, String runDir) extends Record implements Serializable
See Also:
  • Constructor Details

    • VsCodeConfiguration

      public VsCodeConfiguration(String type, String name, String id, String request, String cwd, String console, boolean stopOnEntry, String mainClass, String vmArgs, String args, Map<String,Object> env, String projectName, String runDir)
      Creates an instance of a VsCodeConfiguration record class.
      Parameters:
      type - the value for the type record component
      name - the value for the name record component
      id - the value for the id record component
      request - the value for the request record component
      cwd - the value for the cwd record component
      console - the value for the console record component
      stopOnEntry - the value for the stopOnEntry record component
      mainClass - the value for the mainClass record component
      vmArgs - the value for the vmArgs record component
      args - the value for the args record component
      env - the value for the env record component
      projectName - the value for the projectName record component
      runDir - the value for the runDir record component
  • Method Details

    • fromRunConfig

      public static GenVsCodeProjectTask.VsCodeConfiguration fromRunConfig(org.gradle.api.Project project, RunConfiguration config)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • request

      public String request()
      Returns the value of the request record component.
      Returns:
      the value of the request record component
    • cwd

      public String cwd()
      Returns the value of the cwd record component.
      Returns:
      the value of the cwd record component
    • console

      public String console()
      Returns the value of the console record component.
      Returns:
      the value of the console record component
    • stopOnEntry

      public boolean stopOnEntry()
      Returns the value of the stopOnEntry record component.
      Returns:
      the value of the stopOnEntry record component
    • mainClass

      public String mainClass()
      Returns the value of the mainClass record component.
      Returns:
      the value of the mainClass record component
    • vmArgs

      public String vmArgs()
      Returns the value of the vmArgs record component.
      Returns:
      the value of the vmArgs record component
    • args

      public String args()
      Returns the value of the args record component.
      Returns:
      the value of the args record component
    • env

      public Map<String,Object> env()
      Returns the value of the env record component.
      Returns:
      the value of the env record component
    • projectName

      public String projectName()
      Returns the value of the projectName record component.
      Returns:
      the value of the projectName record component
    • runDir

      public String runDir()
      Returns the value of the runDir record component.
      Returns:
      the value of the runDir record component