Parcelablepublic final class Metadata extends Object implements Parcelable
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
Metadata.Entry |
A metadata entry.
|
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>| Modifier and Type | Field | Description |
|---|---|---|
static Parcelable.Creator<Metadata> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor | Description |
|---|---|
Metadata(Metadata.Entry... entries) |
|
Metadata(List<? extends Metadata.Entry> entries) |
| Modifier and Type | Method | Description |
|---|---|---|
Metadata |
copyWithAppendedEntries(Metadata.Entry... entriesToAppend) |
Returns a copy of this metadata with the specified entries appended.
|
Metadata |
copyWithAppendedEntriesFrom(Metadata other) |
Returns a copy of this metadata with the entries of the specified metadata appended.
|
int |
describeContents() |
|
boolean |
equals(Object obj) |
|
Metadata.Entry |
get(int index) |
Returns the entry at the specified index.
|
int |
hashCode() |
|
int |
length() |
Returns the number of metadata entries.
|
String |
toString() |
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<Metadata> CREATOR
public Metadata(Metadata.Entry... entries)
entries - The metadata entries.public Metadata(List<? extends Metadata.Entry> entries)
entries - The metadata entries.public int length()
public Metadata.Entry get(int index)
index - The index of the entry.public Metadata copyWithAppendedEntriesFrom(@Nullable Metadata other)
other is null.other - The metadata that holds the entries to append. If null, this methods returns this
instance.public Metadata copyWithAppendedEntries(Metadata.Entry... entriesToAppend)
entriesToAppend - The entries to append.public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel dest, int flags)
writeToParcel in interface Parcelable