Version


public final class Version implements Comparable


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

This is independent of the Jetpack version. A Jetpack release may have multiple brush version increments, or none at all (supporting only previously released brush versions). Version is used to determine compatibility of serialized brushes which may be shared across apps using different releases of this library.

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-alpha07
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

public static final @NonNull Version V0

Included with Jetpack 1.0.0.

V1

public static final @NonNull Version V1

Included with Jetpack 1.1.0-alpha01.

Public methods

compareTo

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

toString

public @NonNull String toString()