Lines Matching refs:Entry
29 * DNSEntry entry = i.next();
30 * ...do something with entry...
38 * DNSEntry entry = i.next();
39 * ...do something with entry...
49 private transient Set<Map.Entry<String, List<? extends DNSEntry>>> _entrySet = null;
118 public Set<Map.Entry<String, List<? extends DNSEntry>>> entrySet() {
151 protected static class _CacheEntry extends Object implements Map.Entry<String, List<? extends DNSEntry>> {
168 * @param entry
170 protected _CacheEntry(Map.Entry<String, List<? extends DNSEntry>> entry) {
172 if (entry instanceof _CacheEntry) {
173 _key = ((_CacheEntry) entry).getKey();
174 _value = ((_CacheEntry) entry).getValue();
217 public boolean equals(Object entry) {
218 if (!(entry instanceof Map.Entry)) {
221 return this.getKey().equals(((Map.Entry<?, ?>) entry).getKey()) && this.getValue().equals(((Map.Entry<?, ?>) entry).getValue());
242 for (DNSEntry entry : _value) {
244 aLog.append(entry.toString());
277 _entrySet = new HashSet<Map.Entry<String, List<? extends DNSEntry>>>(initialCapacity);
288 public Set<Map.Entry<String, List<? extends DNSEntry>>> entrySet() {
290 _entrySet = new HashSet<Map.Entry<String, List<? extends DNSEntry>>>();
297 * @return map entry for the key
299 protected Map.Entry<String, List<? extends DNSEntry>> getEntry(String key) {
301 for (Map.Entry<String, List<? extends DNSEntry>> entry : this.entrySet()) {
303 if (stringKey.equals(entry.getKey())) {
304 return entry;
307 if (entry.getKey() == null) {
308 return entry;
322 Map.Entry<String, List<? extends DNSEntry>> oldEntry = this.getEntry(key);
349 for (List<? extends DNSEntry> entry : this.values()) {
350 if (entry != null) {
351 allValues.addAll(entry);
378 * Get a matching DNS entry from the table (using isSameEntry). Returns the entry that was found.
400 * Get a matching DNS entry from the table.
446 * Adds an entry to the table.
449 * @return true if the entry was added
454 Map.Entry<String, List<? extends DNSEntry>> oldEntry = this.getEntry(dnsEntry.getKey());
476 * Removes a specific entry from the table. Returns true if the entry was found.
479 * @return true if the entry was removed
484 Map.Entry<String, List<? extends DNSEntry>> existingEntry = this.getEntry(dnsEntry.getKey());
487 // If we just removed the last one we need to get rid of the entry
497 * Replace an existing entry by a new one.<br/>
502 * @return <code>true</code> if the entry has been replace, <code>false</code> otherwise.
507 Map.Entry<String, List<? extends DNSEntry>> oldEntry = this.getEntry(newDNSEntry.getKey());
536 for (Map.Entry<String, List<? extends DNSEntry>> entry : this.entrySet()) {
538 aLog.append(entry.toString());