Record Class AsyncGenerator.Embed<E>
java.lang.Object
java.lang.Record
org.bsc.async.AsyncGenerator.Embed<E>
- All Implemented Interfaces:
AsyncGenerator.HasResultValue
- Enclosing interface:
AsyncGenerator<E>
public static record AsyncGenerator.Embed<E>(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion)
extends Record
implements AsyncGenerator.HasResultValue
-
Constructor Summary
ConstructorsConstructorDescriptionEmbed(AsyncGenerator<E> generator, AsyncGenerator.EmbedCompletionHandler onCompletion) Creates an instance of aEmbedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theonCompletionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Embed
Creates an instance of aEmbedrecord class.- Parameters:
generator- the value for thegeneratorrecord componentonCompletion- the value for theonCompletionrecord component
-
-
Method Details
-
resultValue
- Specified by:
resultValuein interfaceAsyncGenerator.HasResultValue
-
toString
-
hashCode
-
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). -
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
onCompletion
Returns the value of theonCompletionrecord component.- Returns:
- the value of the
onCompletionrecord component
-