Shapes

public final class Shapes


Components are grouped into shape categories based on common features. These categories provide a way to change multiple component values at once, by changing the category’s values.

Summary

Public fields

final @NonNull CornerBasedShape

Cards use this shape

final @NonNull CornerBasedShape
final @NonNull CornerBasedShape

Buttons and Chips use this shape

Public constructors

Shapes(
    @NonNull CornerBasedShape small,
    @NonNull CornerBasedShape medium,
    @NonNull CornerBasedShape large
)

Public methods

final @NonNull Shapes
copy(
    @NonNull CornerBasedShape small,
    @NonNull CornerBasedShape medium,
    @NonNull CornerBasedShape large
)

Returns a copy of this Shapes, optionally overriding some of the values.

boolean
int
@NonNull String

Public fields

large

@NonNull
public final @NonNull CornerBasedShape large

Cards use this shape

medium

@NonNull
public final @NonNull CornerBasedShape medium

small

@NonNull
public final @NonNull CornerBasedShape small

Buttons and Chips use this shape

Public constructors

Shapes

public final Shapes(
    @NonNull CornerBasedShape small,
    @NonNull CornerBasedShape medium,
    @NonNull CornerBasedShape large
)

Public methods

copy

@NonNull
public final Shapes copy(
    @NonNull CornerBasedShape small,
    @NonNull CornerBasedShape medium,
    @NonNull CornerBasedShape large
)

Returns a copy of this Shapes, optionally overriding some of the values.

equals

@NonNull
public boolean equals(@Nullable Object other)

hashCode

@NonNull
public int hashCode()

toString

@NonNull
public String toString()