Version


public final class Version implements Comparable


A Version represents a version of the Ink library's brush customization format.

This is independent of the Jetpack version. A Jetpack version may have multiple brush version increments, or none at all (supporting only previously released brush versions).

Summary

Public fields

final int
static final @NonNull Version

A version that is always rejected by the deserializer by default.

static final @NonNull Version

The maximum version supported by this library.

static final @NonNull Version

Included with Jetpack 1.0.0.

static final @NonNull Version

Included with Jetpack 1.1.0-alpha01.

Public methods

int
@NonNull String

Public fields

value

Added in 1.1.0-alpha03
public final int value

DEVELOPMENT

public static final @NonNull Version DEVELOPMENT

A version that is always rejected by the deserializer by default. This is used for features still under development that may change or be removed entirely.

MAX_SUPPORTED

public static final @NonNull Version MAX_SUPPORTED

The maximum version supported by this library.

V0_JETPACK1_0_0

public static final @NonNull Version V0_JETPACK1_0_0

Included with Jetpack 1.0.0.

V1_JETPACK1_1_0_ALPHA01

public static final @NonNull Version V1_JETPACK1_1_0_ALPHA01

Included with Jetpack 1.1.0-alpha01.

Public methods

compareTo

Added in 1.1.0-alpha03
public int compareTo(@NonNull Version other)

toString

public @NonNull String toString()