com.box.boxjavalibv2.dao.BoxCollection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of boxjavalibv2 Show documentation
Show all versions of boxjavalibv2 Show documentation
The Java SDK for the Box API.
package com.box.boxjavalibv2.dao;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
public class BoxCollection extends BoxCollectionBase {
public static final String FIELD_TOTAL_COUNT = "total_count";
public BoxCollection() {
}
/**
* Copy constructor, this does deep copy for all the fields.
*
* @param obj
*/
public BoxCollection(BoxCollection obj) {
super(obj);
}
/**
* Instantiate the object from a map. Each entry in the map reflects to a field.
*
* @param map
*/
public BoxCollection(Map map) {
super(map);
}
/**
* @return the total_count
*/
@JsonProperty("total_count")
public Integer getTotalCount() {
return (Integer) getValue(FIELD_TOTAL_COUNT);
}
/**
* @param totalCount
* the total_count to set
*/
@JsonProperty("total_count")
private void setTotalCount(Integer totalCount) {
put(FIELD_TOTAL_COUNT, totalCount);
}
public BoxCollection(IBoxParcelWrapper in) {
super(in);
}
}