-
- All Implemented Interfaces:
-
android.os.Parcelable,org.readium.r2.shared.JSONable
public final class LocatorCollection implements JSONable, Parcelable
Represents a sequential list of
Locatorobjects.For example, a search result or a list of positions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classLocatorCollection.MetadataHolds the metadata of a
LocatorCollection.public classLocatorCollection.Companion
-
Constructor Summary
Constructors Constructor Description LocatorCollection(LocatorCollection.Metadata metadata, List<Link> links, List<Locator> locators)
-
Method Summary
Modifier and Type Method Description final LocatorCollection.MetadatagetMetadata()final List<Link>getLinks()final List<Locator>getLocators()JSONObjecttoJSON()Serializes the object to its JSON representation. -
-
Constructor Detail
-
LocatorCollection
LocatorCollection(LocatorCollection.Metadata metadata, List<Link> links, List<Locator> locators)
-
-
Method Detail
-
getMetadata
final LocatorCollection.Metadata getMetadata()
-
getLocators
final List<Locator> getLocators()
-
toJSON
JSONObject toJSON()
Serializes the object to its JSON representation.
-
-
-
-