package de.ddb.pdc.metadata;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.ArrayList;

@JsonIgnoreProperties(ignoreUnknown = true)
class SearchResults {

  private int numberOfResults;
  @JsonProperty("results")
  private ArrayList<SearchResultList> results;

  public ArrayList<SearchResultItem> getResultItems() {
    return results.get(0).getDocs();
  }
}

@@ -169,16 +169,78 @@
 yList;%0A%0A
+/**%0A * class to get the results of the search json result%0A */%0A
 @JsonIgn
@@ -404,16 +404,93 @@
 sults;%0A%0A
+  /**%0A   * returns the result of the search json result with the docs.%0A   */%0A
   public

add documentation