LayoutElementBuilders.Layout

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.Layout


A complete layout.

Summary

Nested types

Builder for Layout

Public methods

static @Nullable LayoutElementBuilders.Layout

Converts from byte array representation.

static @NonNull LayoutElementBuilders.Layout

Creates a Layout object containing the given layout element.

@Nullable LayoutElementBuilders.LayoutElement

Gets the root element in the layout.

@NonNull byte[]

Converts to byte array representation.

Public methods

fromByteArray

Added in 1.1.0
Deprecated in 1.2.0
@TilesExperimental
public static @Nullable LayoutElementBuilders.Layout fromByteArray(@NonNull byte[] byteArray)

Converts from byte array representation.

fromLayoutElement

Added in 1.1.0
Deprecated in 1.2.0
public static @NonNull LayoutElementBuilders.Layout fromLayoutElement(
    @NonNull LayoutElementBuilders.LayoutElement layoutElement
)

Creates a Layout object containing the given layout element.

getRoot

Added in 1.0.0
Deprecated in 1.2.0
public @Nullable LayoutElementBuilders.LayoutElement getRoot()

Gets the root element in the layout. Intended for testing purposes only.

toByteArray

Added in 1.1.0
Deprecated in 1.2.0
@TilesExperimental
public @NonNull byte[] toByteArray()

Converts to byte array representation.