/** * Returns all entries in the cache * * @return all entries in the cache */ public synchronized Collection<DNSEntry> allValues() { List<DNSEntry> allValues = new ArrayList<DNSEntry>(); for (List<? extends DNSEntry> entry : this.values()) { if (entry != null) { allValues.addAll(entry); } } return allValues; }
/** * Returns all entries in the cache * * @return all entries in the cache */ public synchronized Collection<DNSEntry> allValues() { List<DNSEntry> allValues = new ArrayList<DNSEntry>(); for (List<? extends DNSEntry> entry : this.values()) { if (entry != null) { allValues.addAll(entry); } } return allValues; }
/** * Returns all entries in the cache * * @return all entries in the cache */ public Collection<DNSEntry> allValues() { List<DNSEntry> allValues = new ArrayList<DNSEntry>(); for (List<? extends DNSEntry> entry : this.values()) { if (entry != null) { allValues.addAll(entry); } } return allValues; }
/** * Returns all entries in the cache * * @return all entries in the cache */ public synchronized Collection<DNSEntry> allValues() { List<DNSEntry> allValues = new ArrayList<DNSEntry>(); for (List<? extends DNSEntry> entry : this.values()) { if (entry != null) { allValues.addAll(entry); } } return allValues; }