Class BLApplicationVersion

java.lang.Object
com.io7m.brooklime.api.BLApplicationVersion
All Implemented Interfaces:
BLApplicationVersionType

public final class BLApplicationVersion
extends java.lang.Object
implements BLApplicationVersionType
An application version.
  • Method Details

    • applicationName

      public java.lang.String applicationName()
      Specified by:
      applicationName in interface BLApplicationVersionType
      Returns:
      The name of the application
    • applicationVersion

      public java.lang.String applicationVersion()
      Specified by:
      applicationVersion in interface BLApplicationVersionType
      Returns:
      The version of the application
    • withApplicationName

      public final BLApplicationVersion withApplicationName​(java.lang.String value)
      Copy the current immutable object by setting a value for the applicationName attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for applicationName
      Returns:
      A modified copy of the this object
    • withApplicationVersion

      public final BLApplicationVersion withApplicationVersion​(java.lang.String value)
      Copy the current immutable object by setting a value for the applicationVersion attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for applicationVersion
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals​(java.lang.Object another)
      This instance is equal to all instances of BLApplicationVersion that have equal attribute values.
      Overrides:
      equals in class java.lang.Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: applicationName, applicationVersion.
      Overrides:
      hashCode in class java.lang.Object
      Returns:
      hashCode value
    • toString

      public java.lang.String toString()
      Prints the immutable value BLApplicationVersion with attribute values.
      Overrides:
      toString in class java.lang.Object
      Returns:
      A string representation of the value
    • copyOf

      public static BLApplicationVersion copyOf​(BLApplicationVersionType instance)
      Creates an immutable copy of a BLApplicationVersionType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable BLApplicationVersion instance
    • builder

      public static BLApplicationVersion.Builder builder()
      Creates a builder for BLApplicationVersion.
       BLApplicationVersion.builder()
          .setApplicationName(String) // required applicationName
          .setApplicationVersion(String) // required applicationVersion
          .build();
       
      Returns:
      A new BLApplicationVersion builder