Class Environment

All Implemented Interfaces:
Serializable

public class Environment extends BasePOJO
Represents a FlexDeploy environment, which contains a name, code, and generated id. The name is the display name shown in the UI, whereas, the code is used within scripts (e.g. Groovy, Shell, Ant, etc.).
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Environment(Long pID, String pCode, String pName)
    Creates an Environment with the given id, code, and name.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object pObject)
    Returns whether the given environment is equal to this one.
    final String
    Returns this environment's code name
    final Long
    Returns this environment's internal id
    final String
    Returns this environment's display name
    int
    Returns a hash code value for this environment.
    Returns custom String representation implemented by walking complete object structure.

    Methods inherited from class flexagon.ff.common.core.pojos.BasePOJO

    areEqual

    Methods inherited from class java.lang.Object

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

    • Environment

      public Environment(Long pID, String pCode, String pName)
      Creates an Environment with the given id, code, and name.
      Parameters:
      pID - the generated primary key for the environment
      pCode - the code for the environment
      pName - the display name for the environment
  • Method Details

    • getEnvironmentID

      public final Long getEnvironmentID()
      Returns this environment's internal id
      Returns:
      the environment's internal id
    • getCode

      public final String getCode()
      Returns this environment's code name
      Returns:
      the environment code
    • getName

      public final String getName()
      Returns this environment's display name
      Returns:
      the environment display name
    • equals

      public boolean equals(Object pObject)
      Returns whether the given environment is equal to this one.
      Overrides:
      equals in class Object
      Parameters:
      pObject - the environment to compare to this environment
      Returns:
      true if this environment is the same as the pObject argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this environment. This method is supported for the benefit of hash tables such as those provided by HashMap.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • toString

      public String toString()
      Description copied from class: BasePOJO
      Returns custom String representation implemented by walking complete object structure.
      Overrides:
      toString in class BasePOJO
      Returns:
      a String representation of this object