public class Lifecycle extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Lifecycle.Deprecated
A class for deprecated lifecycles.
|
Modifier and Type | Method and Description |
---|---|
Lifecycle |
add(Lifecycle other)
Combines this lifecycle with another lifecycle.
|
static Lifecycle |
deprecated(int since)
Returns a deprecated lifecycle for the given version.
|
static Lifecycle |
experimental()
Returns the experimental lifecycle.
|
static Lifecycle |
stable()
Returns the stable lifecycle.
|
public static Lifecycle experimental()
public static Lifecycle stable()
public static Lifecycle deprecated(int since)
since
- The version the lifecycle is for.Lifecycle.Deprecated
public Lifecycle add(Lifecycle other)
this
or other
) is returned.
For example, the following lifecycles are ordered according to breakage potential.
Experimental
Deprecated(since = 1)
Deprecated(since = 2)
Stable
other
- The lifecycle to compare this lifecycle against.