@ApiStatus.NonExtendable
public interface MergeStrategy
ResourceContainer instances in one.ResourceContainer.merge(ResourceContainer, MergeStrategy)| Modifier and Type | Method and Description |
|---|---|
static @NotNull MergeStrategy |
mergeAndFailOnError()
Gets a merge strategy that merges the resources of the
first container with the resources of the second container,
resulting in an exception if there are duplicates that can't
be merged.
|
static @NotNull MergeStrategy |
mergeAndKeepFirstOnError()
Gets a merge strategy that merges the resources of the
first container with the resources of the second container,
keeping the resources of the first container if there are
duplicates that can't be merged.
|
static @NotNull MergeStrategy |
override()
Gets a merge strategy that overrides the resources of
the first container with the resources of the second
container if there are duplicates.
|
@NotNull static @NotNull MergeStrategy override()
@NotNull static @NotNull MergeStrategy mergeAndFailOnError()
@NotNull static @NotNull MergeStrategy mergeAndKeepFirstOnError()