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.Deprecatedpublic Lifecycle add(Lifecycle other)
this or other) is returned.
For example, the following lifecycles are ordered according to breakage potential.
ExperimentalDeprecated(since = 1)Deprecated(since = 2)Stableother - The lifecycle to compare this lifecycle against.