Record Class BuildStepExecutor.BuildOutputRedirector
java.lang.Object
java.lang.Record
eu.cloudnetservice.node.impl.version.execute.defaults.BuildStepExecutor.BuildOutputRedirector
- All Implemented Interfaces:
Runnable
- Enclosing class:
BuildStepExecutor
private static record BuildStepExecutor.BuildOutputRedirector(@NonNull Process process, @NonNull InputStream source, @NonNull BiConsumer<String,Process> handler)
extends Record
implements Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull BiConsumer<String, Process> The field for thehandlerrecord component.The field for theprocessrecord component.private final @NonNull InputStreamThe field for thesourcerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBuildOutputRedirector(@NonNull Process process, @NonNull InputStream source, @NonNull BiConsumer<String, Process> handler) Creates an instance of aBuildOutputRedirectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.handler()Returns the value of thehandlerrecord component.final inthashCode()Returns a hash code value for this object.process()Returns the value of theprocessrecord component.voidrun()source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
process
-
source
The field for thesourcerecord component. -
handler
The field for thehandlerrecord component.
-
-
Constructor Details
-
BuildOutputRedirector
private BuildOutputRedirector(@NonNull @NonNull Process process, @NonNull @NonNull InputStream source, @NonNull @NonNull BiConsumer<String, Process> handler) Creates an instance of aBuildOutputRedirectorrecord class.- Parameters:
process- the value for theprocessrecord componentsource- the value for thesourcerecord componenthandler- the value for thehandlerrecord component
-
-
Method Details
-
run
-
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). -
process
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
handler
Returns the value of thehandlerrecord component.- Returns:
- the value of the
handlerrecord component
-