AnnotationValue


public final class AnnotationValue implements Parcelable


Represents a field value on an java.lang.annotation.Annotation.

See Android Parcelable.

Summary

Constants

static final Parcelable.Creator<AnnotationValue>

Public fields

final @NonNull String

Name of the field in a java.lang.annotation.Annotation.

final @NonNull List<String>

Values of the annotation's field represented as Strings.

final @NonNull String

The type of the values, e.g. Integer.

Public constructors

AnnotationValue(
    @NonNull String fieldName,
    @NonNull List<String> fieldValues,
    @NonNull String valueType
)

Constructor to create an AnnotationValue.

Public methods

int
void
writeToParcel(Parcel parcel, int i)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Constants

CREATOR

public static final Parcelable.Creator<AnnotationValueCREATOR

Public fields

fieldName

public final @NonNull String fieldName

Name of the field in a java.lang.annotation.Annotation.

fieldValues

public final @NonNull List<StringfieldValues

Values of the annotation's field represented as Strings.

valueType

public final @NonNull String valueType

The type of the values, e.g. Integer.

Public constructors

AnnotationValue

public AnnotationValue(
    @NonNull String fieldName,
    @NonNull List<String> fieldValues,
    @NonNull String valueType
)

Constructor to create an AnnotationValue.

Parameters
@NonNull String fieldName

Name of the field in a java.lang.annotation.Annotation

@NonNull List<String> fieldValues

Values of the annotation's field represented as Strings

@NonNull String valueType

The type of the values, e.g. Integer

Public methods

describeContents

public int describeContents()

writeToParcel

public void writeToParcel(Parcel parcel, int i)