BuildConfigField

public final class BuildConfigField<T extends Serializable> implements Serializable


Field definition for the generated BuildConfig class.

The field is generated as: = ;

Summary

Public constructors

<T extends Serializable> BuildConfigField(
    @NonNull String type,
    @NonNull T value,
    String comment
)

Public methods

final String

Optional field comment that will be added to the generated source file or null if no comment is necessary.

final @NonNull String

Value to be written as BuildConfig field type.

final @NonNull T

Value of the generated field.

Public constructors

BuildConfigField

public <T extends Serializable> BuildConfigField(
    @NonNull String type,
    @NonNull T value,
    String comment
)

Public methods

getComment

public final String getComment()

Optional field comment that will be added to the generated source file or null if no comment is necessary.

getType

public final @NonNull String getType()

Value to be written as BuildConfig field type.

getValue

public final @NonNullgetValue()

Value of the generated field. If type is String, then value should include quotes.