io.github11904212.java.stac.client.search.impl.ItemCollectionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-stac-client Show documentation
Show all versions of java-stac-client Show documentation
A Java client for working with STAC-APIs
package io.github11904212.java.stac.client.search.impl;
import io.github11904212.java.stac.client.core.Item;
import io.github11904212.java.stac.client.core.Link;
import io.github11904212.java.stac.client.core.impl.ItemImpl;
import io.github11904212.java.stac.client.core.impl.LinkImpl;
import io.github11904212.java.stac.client.search.ItemCollection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.List;
public class ItemCollectionImpl implements ItemCollection {
private final String type;
private final List- items;
private final List links;
@JsonCreator
public ItemCollectionImpl(
@JsonProperty(value = "type", required = true)
String type,
@JsonProperty(value = "features", required = true) @JsonDeserialize(contentAs = ItemImpl.class)
List
- items,
@JsonProperty("links") @JsonDeserialize(contentAs = LinkImpl.class)
List links
) {
this.type = type;
this.items = items;
this.links = links;
}
@Override
public String getType() {
return this.type;
}
@Override
public List
- getItems() {
return this.items;
}
@Override
public List getLinks() {
return this.links;
}
}