/** * Returns true if the specified feature is part of the discovered information. * * @param feature the feature to check * @return true if the requestes feature has been discovered */ public boolean containsFeature(String feature) { for (Iterator<Feature> it = getFeatures(); it.hasNext();) { if (feature.equals(it.next().getVar())) return true; } return false; }
/** * Returns true if the specified feature is part of the discovered information. * * @param feature the feature to check * @return true if the requestes feature has been discovered */ public boolean containsFeature(String feature) { for (Iterator<Feature> it = getFeatures(); it.hasNext();) { if (feature.equals(it.next().getVar())) return true; } return false; }
/** * Returns true if the specified feature is part of the discovered information. * * @param feature the feature to check * @return true if the requestes feature has been discovered */ public boolean containsFeature(String feature) { for (Iterator it = getFeatures(); it.hasNext();) { if (feature.equals(((DiscoverInfo.Feature) it.next()).getVar())) return true; } return false; }
/** * Returns true if the specified feature is part of the discovered information. * * @param feature the feature to check * @return true if the requestes feature has been discovered */ public boolean containsFeature(String feature) { for (Iterator<Feature> it = getFeatures(); it.hasNext();) { if (feature.equals(it.next().getVar())) return true; } return false; }
for (Iterator<Feature> it = discoverInfo.getFeatures(); it.hasNext();) features.add(it.next().getVar());