Utility class to more easily create PartialSemVerStrategy instances.
Type | Name and description |
---|---|
static PartialSemVerStrategy |
all(PartialSemVerStrategy... strategies) Creates a strategy that applies all of the given strategies in order. |
static PartialSemVerStrategy |
closure(groovy.lang.Closure<SemVerStrategyState> behavior) Creates a strategy backed by the given closure. |
static SemVerStrategyState |
incrementNormalFromScope(SemVerStrategyState state, ChangeScope scope) Increments the nearest normal version using the specified scope. |
static PartialSemVerStrategy |
one(PartialSemVerStrategy... strategies) Creates a strategy that applies each strategy in order, until one changes the state, which is then returned. |
static int |
parseIntOrZero(java.lang.String str) Returns the int value of a string or returns 0 if it cannot be parsed. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a strategy that applies all of the given strategies in order.
Creates a strategy backed by the given closure. It should accept and return a SemVerStrategyState.
Increments the nearest normal version using the specified scope.
Creates a strategy that applies each strategy in order, until one changes the state, which is then returned.
Returns the int value of a string or returns 0 if it cannot be parsed.