class JsonApiDocument implements Serializable, JsonLinks {

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		JsonApiDocument that = (JsonApiDocument) o;
		return Objects.equals(links, that.links) &&
			Objects.equals(uriInfo, that.uriInfo) &&
			Objects.equals(data, that.data);
	}

	public  JsonApiDocument(JsonApiError error);
	public  JsonApiDocument(JsonApiIdentifiable entity,
						   UriInfo uriInfo);
	public  JsonApiDocument(Collection<? extends JsonApiIdentifiable> entityCollection,
						   UriInfo uriInfo);

}