| Modifier and Type | Method and Description |
|---|---|
JarBuilder.DuplicateAction |
JarBuilder.DuplicatePolicy.getAction()
Returns the action that should be applied when a duplicate entry falls under this policy's
jurisdiction.
|
static JarBuilder.DuplicateAction |
JarBuilder.DuplicateAction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JarBuilder.DuplicateAction[] |
JarBuilder.DuplicateAction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static JarBuilder.DuplicateHandler |
JarBuilder.DuplicateHandler.always(JarBuilder.DuplicateAction action)
Creates a handler that always applies the given
action. |
static JarBuilder.DuplicatePolicy |
JarBuilder.DuplicatePolicy.pathMatches(String regex,
JarBuilder.DuplicateAction action)
Creates a policy that applies to entries based on a path match.
|
| Constructor and Description |
|---|
JarBuilder.DuplicateHandler(JarBuilder.DuplicateAction defaultAction,
Iterable<JarBuilder.DuplicatePolicy> policies)
Creates a handler that applies the 1st matching policy when a duplicate entry is encountered,
falling back to the given
defaultAction if no policy applies. |
JarBuilder.DuplicateHandler(JarBuilder.DuplicateAction defaultAction,
JarBuilder.DuplicatePolicy... policies)
A convenience constructor equivalent to calling:
DuplicateHandler(defaultAction, Arrays.asList(policies)) |
JarBuilder.DuplicatePolicy(Predicate<CharSequence> selector,
JarBuilder.DuplicateAction action)
Creates a policy that will be applied to duplicate entries matching the given
selector. |