CondensedItemStyle.Builder
@RequiresCarApi(value = 9)
@ExperimentalCarApi
public final class CondensedItemStyle.Builder
A builder for CondensedItemStyle.
Summary
Public constructors |
|---|
Builder() |
Public methods |
|
|---|---|
@NonNull CondensedItemStyle |
build()Constructs a |
@NonNull CondensedItemStyle.Builder |
@CanIgnoreReturnValueSets the |
@NonNull CondensedItemStyle.Builder |
@CanIgnoreReturnValueSets the |
Public constructors
Public methods
build
Added in 1.8.0
public @NonNull CondensedItemStyle build()
Constructs a CondensedItemStyle from the current state of this builder.
| Throws | |
|---|---|
java.lang.IllegalStateException |
if both shape and background are |
setBackground
Added in 1.8.0
@CanIgnoreReturnValue
public @NonNull CondensedItemStyle.Builder setBackground(@NonNull Background background)
Sets the Background for the container.
background must conform to BackgroundConstraints.COLOR_ONLY.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |
java.lang.IllegalArgumentException |
if |
setShape
Added in 1.8.0
@CanIgnoreReturnValue
public @NonNull CondensedItemStyle.Builder setShape(@NonNull Shape shape)
Sets the Shape for the container.
| Throws | |
|---|---|
java.lang.NullPointerException |
if |