Package com.io7m.brooklime.api
Class BLApplicationVersion
java.lang.Object
com.io7m.brooklime.api.BLApplicationVersion
- All Implemented Interfaces:
BLApplicationVersionType
An application version.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBLApplicationVersion. -
Method Summary
Modifier and TypeMethodDescriptionstatic BLApplicationVersion.Builderbuilder()Creates a builder forBLApplicationVersion.static BLApplicationVersioncopyOf(BLApplicationVersionType instance) Creates an immutable copy of aBLApplicationVersionTypevalue.booleanThis instance is equal to all instances ofBLApplicationVersionthat have equal attribute values.inthashCode()Computes a hash code from attributes:applicationName,applicationVersion.toString()Prints the immutable valueBLApplicationVersionwith attribute values.final BLApplicationVersionwithApplicationName(String value) Copy the current immutable object by setting a value for theapplicationNameattribute.final BLApplicationVersionwithApplicationVersion(String value) Copy the current immutable object by setting a value for theapplicationVersionattribute.
-
Method Details
-
applicationName
- Specified by:
applicationNamein interfaceBLApplicationVersionType- Returns:
- The name of the application
-
applicationVersion
- Specified by:
applicationVersionin interfaceBLApplicationVersionType- Returns:
- The version of the application
-
withApplicationName
Copy the current immutable object by setting a value for theapplicationNameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for applicationName- Returns:
- A modified copy of the
thisobject
-
withApplicationVersion
Copy the current immutable object by setting a value for theapplicationVersionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for applicationVersion- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofBLApplicationVersionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:applicationName,applicationVersion. -
toString
Prints the immutable valueBLApplicationVersionwith attribute values. -
copyOf
Creates an immutable copy of aBLApplicationVersionTypevalue. 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
Creates a builder forBLApplicationVersion.BLApplicationVersion.builder() .setApplicationName(String) // requiredapplicationName.setApplicationVersion(String) // requiredapplicationVersion.build();- Returns:
- A new BLApplicationVersion builder
-