All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindee.parsing.common.Pages Maven / Gradle / Ivy

The newest version!
package com.mindee.parsing.common;
import java.util.ArrayList;
import java.util.stream.Collectors;

/**
 * List of all pages in the inference.
 * @param 
 */
public class Pages extends ArrayList> {
  @Override
  public String toString() {
    return this.stream()
        .map(Page::toString)
        .collect(Collectors.joining(String.format("%n")));
  }

  /**
   * Returns whether any predictions are set.
   */
  public boolean hasPrediction() {
    return (!this.isEmpty() && !this.get(0).isPredictionEmpty());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy