Record Class PluginIncludeListener
java.lang.Object
java.lang.Record
eu.cloudnetservice.node.impl.module.listener.PluginIncludeListener
public record PluginIncludeListener(@NonNull String moduleName, @NonNull Class<?> moduleClass, @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker, @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theincludeCheckerrecord component.private final @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> The field for theincludeHandlerrecord component.private static final org.slf4j.LoggerThe field for themoduleClassrecord component.private final @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelperThe field for themoduleHelperrecord component.The field for themoduleNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPluginIncludeListener(@NonNull String moduleName, @NonNull Class<?> moduleClass, @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker) PluginIncludeListener(@NonNull String moduleName, @NonNull Class<?> moduleClass, @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker, @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler) Creates an instance of aPluginIncludeListenerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.voidfinal inthashCode()Returns a hash code value for this object.Returns the value of theincludeCheckerrecord component.@Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> Returns the value of theincludeHandlerrecord component.Returns the value of themoduleClassrecord component.@NonNull eu.cloudnetservice.driver.impl.module.ModuleHelperReturns the value of themoduleHelperrecord component.Returns the value of themoduleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
moduleName
-
moduleClass
-
moduleHelper
-
includeChecker
-
includeHandler
@Nullable private final @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandlerThe field for theincludeHandlerrecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
PluginIncludeListener
-
PluginIncludeListener
public PluginIncludeListener(@NonNull @NonNull String moduleName, @NonNull @NonNull Class<?> moduleClass, @NonNull @NonNull eu.cloudnetservice.driver.impl.module.ModuleHelper moduleHelper, @NonNull @NonNull Function<eu.cloudnetservice.node.service.CloudService, Boolean> includeChecker, @Nullable @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler) Creates an instance of aPluginIncludeListenerrecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentmoduleClass- the value for themoduleClassrecord componentmoduleHelper- the value for themoduleHelperrecord componentincludeChecker- the value for theincludeCheckerrecord componentincludeHandler- the value for theincludeHandlerrecord component
-
-
Method Details
-
handle
-
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). -
moduleName
-
moduleClass
-
moduleHelper
-
includeChecker
-
includeHandler
@Nullable public @Nullable BiConsumer<eu.cloudnetservice.node.service.CloudService, Path> includeHandler()Returns the value of theincludeHandlerrecord component.- Returns:
- the value of the
includeHandlerrecord component
-