Record Class EnvironmentForExecutablesView

java.lang.Object
java.lang.Record
com.atlassian.bamboo.deployments.environments.EnvironmentForExecutablesView

@Internal public record EnvironmentForExecutablesView(long projectId, String projectName, long environmentId, String environmentName) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    EnvironmentForExecutablesView(long projectId, String projectName, long environmentId, String environmentName)
    Creates an instance of a EnvironmentForExecutablesView record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the environmentId record component.
    Returns the value of the environmentName record component.
    boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns a hash code value for this object.
    long
    Returns the value of the projectId record component.
    Returns the value of the projectName record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EnvironmentForExecutablesView

      public EnvironmentForExecutablesView(long projectId, String projectName, long environmentId, String environmentName)
      Creates an instance of a EnvironmentForExecutablesView record class.
      Parameters:
      projectId - the value for the projectId record component
      projectName - the value for the projectName record component
      environmentId - the value for the environmentId record component
      environmentName - the value for the environmentName record component
  • Method Details

    • equals

      public 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.
    • hashCode

      public 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
    • toString

      public 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
    • projectId

      public long projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • projectName

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

      public long environmentId()
      Returns the value of the environmentId record component.
      Returns:
      the value of the environmentId record component
    • environmentName

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