Class ExclusionContainer<T extends Excluder>
java.lang.Object
org.stianloader.picoresolve.exclusion.ExclusionContainer<T>
- Type Parameters:
T- The type of acceptedExcluders. Mainly used for sanity checking when paired withExclusionContainer.ExclusionMode.ALL, which makes no sense when used with anyExclusionas a subordinateExcluder.
- All Implemented Interfaces:
Excluder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTheExclusionContainer.ExclusionModeof aExclusionContainerdefines the behaviour to use for negotiating the behaviour of multiple subordinateExcluders. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExclusionContainer(@NotNull ExclusionContainer.ExclusionMode mode) ExclusionContainer(@NotNull ExclusionContainer.ExclusionMode mode, @NotNull Collection<@NotNull ? extends T> exclusions, boolean mutable) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Excluder>
@NotNull ExclusionContainer<T>empty()@NotNull ExclusionContainer.ExclusionModegetMode()booleanisExcluding(String group, String artifact) boolean
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ExclusionContainer
-
ExclusionContainer
public ExclusionContainer(@NotNull @NotNull ExclusionContainer.ExclusionMode mode, @NotNull @NotNull Collection<@NotNull ? extends T> exclusions, boolean mutable)
-
-
Method Details
-
empty
-
addChild
-
getMode
-
isExcluding
- Specified by:
isExcludingin interfaceExcluder
-
isMutable
@Contract(pure=true) public boolean isMutable()
-