public static FacetFieldObject get(FacetFieldList list, String facetName) { int index = indexOf(list, facetName); if (index == -1) return null; return list.get(index); }
public static int indexOf(FacetFieldList list, String facetName, int startIndex) { int j = startIndex; for (; j < list.size() && !list.get(j).getName().equals(facetName); j++) ; if (j >= list.size()) return -1; return j; }
public FacetFieldObject get(String facetName) { return FacetFieldList.get(this, facetName); }