/** * Get all the values available for a given view, identified by {@code viewName} */ public List<View> getTopKViews(String viewName) { if (!hasView(viewName)) throw new IllegalArgumentException("View " + viewName + " not found"); return views.get(viewName); }
/** * Get all the values available for a given view, identified by {@code viewName} */ public List<View> getTopKViews(String viewName) { if (!hasView(viewName)) throw new IllegalArgumentException("View " + viewName + " not found"); return views.get(viewName); }
/** * Gets the highest scoring value for the view identified by {@code viewName}. */ public View getView(String viewName) { if (!hasView(viewName)) throw new IllegalArgumentException("View " + viewName + " not found"); return views.get(viewName).get(0); }
/** * Gets the highest scoring value for the view identified by {@code viewName}. */ public View getView(String viewName) { if (!hasView(viewName)) throw new IllegalArgumentException("View " + viewName + " not found"); return views.get(viewName).get(0); }
if (this.hasView(viewName)) { return this.getView(viewName); } else {
if (this.hasView(viewName)) { return this.getView(viewName); } else {