/** * Gets a list of entries of a particular kind. Will only return entries * that match the expected return class. */ public <T extends Entry> List<T> getEntries(Class<T> returnClass) { List<T> result = new ArrayList<T>(); for (Entry entry : getEntries()) { if (returnClass.isInstance(entry)) { result.add(returnClass.cast(entry)); } } return result; } }
/** * Gets a list of entries of a particular kind. Will only return entries * that match the expected return class. */ public <T extends Entry> List<T> getEntries(Class<T> returnClass) { List<T> result = new ArrayList<T>(); for (Entry entry : getEntries()) { if (returnClass.isInstance(entry)) { result.add(returnClass.cast(entry)); } } return result; } }
/** * Gets a list of entries of a particular kind. Will only return entries * that match the expected return class. */ public <T extends Entry> List<T> getEntries(Class<T> returnClass) { List<T> result = new ArrayList<T>(); for (Entry entry : getEntries()) { if (returnClass.isInstance(entry)) { result.add(returnClass.cast(entry)); } } return result; } }
/** * Sets that GData {@link Service} instance associated with this feed. */ public void setService(Service v) { feedState.service = v; // Propagate service information to nested entries for (Entry entry : getEntries()) { entry.setService(v); } }
/** * Sets that GData {@link Service} instance associated with this feed. */ public void setService(Service v) { feedState.service = v; // Propagate service information to nested entries for (Entry entry : getEntries()) { entry.setService(v); } }
/** * Sets that GData {@link Service} instance associated with this feed. */ public void setService(Service v) { feedState.service = v; // Propagate service information to nested entries for (Entry entry : getEntries()) { entry.setService(v); } }