Package net.devslash
Class AfterBuilder
-
- All Implemented Interfaces:
public final class AfterBuilder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description AfterBuilder()
-
Method Summary
Modifier and Type Method Description final Unit
unaryPlus(ResolvedFullDataAfterHook<in T> $self)
final Unit
unaryPlus(SimpleAfterHook $self)
final Unit
unaryPlus(BodyMutatingAfterHook $self)
final Unit
unaryPlus(FullDataAfterHook $self)
final Unit
unaryPlus(AfterHook $self)
final Unit
unaryPlusAny?(ResolvedFullDataAfterHook<out Object> $self)
If we can't resolve to the <T> type for the resolved after hook, then it's the incorrect type. final List<AfterHook>
build()
-
-
Method Detail
-
unaryPlus
final Unit unaryPlus(ResolvedFullDataAfterHook<in T> $self)
-
unaryPlus
final Unit unaryPlus(SimpleAfterHook $self)
-
unaryPlus
final Unit unaryPlus(BodyMutatingAfterHook $self)
-
unaryPlus
final Unit unaryPlus(FullDataAfterHook $self)
-
unaryPlusAny?
@Deprecated(level = DeprecationLevel.ERROR, replaceWith = @ReplaceWith(imports = {}, expression = "Correct type T for the after hook"), message = "Incorrect type T used") final Unit unaryPlusAny?(ResolvedFullDataAfterHook<out Object> $self)
If we can't resolve to the <T> type for the resolved after hook, then it's the incorrect type. If we remove this method, then the error is simply that
+
is not found. Leaving it in with the added deprecation notice leads to a more usable experience as the developer is informed that they got wrong
-
-
-
-