Package com.atlassian.bamboo.event
Record Class LightweightBuildContextBag
java.lang.Object
java.lang.Record
com.atlassian.bamboo.event.LightweightBuildContextBag
- All Implemented Interfaces:
Serializable
public record LightweightBuildContextBag(VariableContext variableContext, MergeResultContext mergeResult)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLightweightBuildContextBag(VariableContext variableContext, MergeResultContext mergeResult) Creates an instance of aLightweightBuildContextBagrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @Nullable LightweightBuildContextBagfromBuildContext(@Nullable BuildContext buildContext) final inthashCode()Returns a hash code value for this object.Returns the value of themergeResultrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableContextrecord component.
-
Constructor Details
-
LightweightBuildContextBag
Creates an instance of aLightweightBuildContextBagrecord class.- Parameters:
variableContext- the value for thevariableContextrecord componentmergeResult- the value for themergeResultrecord component
-
-
Method Details
-
fromBuildContext
@Nullable public static @Nullable LightweightBuildContextBag fromBuildContext(@Nullable @Nullable BuildContext buildContext) -
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. -
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. -
equals
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. All components in this record class are compared withObjects::equals(Object,Object). -
variableContext
Returns the value of thevariableContextrecord component.- Returns:
- the value of the
variableContextrecord component
-
mergeResult
Returns the value of themergeResultrecord component.- Returns:
- the value of the
mergeResultrecord component
-