Record Class ConcurrentWaitForConditionExample.Input
java.lang.Object
java.lang.Record
software.amazon.lambda.durable.examples.wait.ConcurrentWaitForConditionExample.Input
- Enclosing class:
- ConcurrentWaitForConditionExample
public static record ConcurrentWaitForConditionExample.Input(int threshold, int totalOperations, int maxConcurrency)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInput(int threshold, int totalOperations, int maxConcurrency) Creates an instance of aInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxConcurrencyrecord component.intReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalOperationsrecord component.
-
Constructor Details
-
Input
public Input(int threshold, int totalOperations, int maxConcurrency) Creates an instance of aInputrecord class.- Parameters:
threshold- the value for thethresholdrecord componenttotalOperations- the value for thetotalOperationsrecord componentmaxConcurrency- the value for themaxConcurrencyrecord component
-
-
Method Details
-
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 with '=='. -
threshold
public int threshold()Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-
totalOperations
public int totalOperations()Returns the value of thetotalOperationsrecord component.- Returns:
- the value of the
totalOperationsrecord component
-
maxConcurrency
public int maxConcurrency()Returns the value of themaxConcurrencyrecord component.- Returns:
- the value of the
maxConcurrencyrecord component
-