@Override public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) jmDNSImpl.getServices().get(this.getName().toLowerCase())); }
return new Service(name, type, recordClass, unique); case TYPE_TXT: return new Text(name, type, recordClass, unique); default: return new DNSQuestion(name, type, recordClass, unique);
return new Service(name, type, recordClass, unique); case TYPE_TXT: return new Text(name, type, recordClass, unique); default: return new DNSQuestion(name, type, recordClass, unique);
return new Service(name, type, recordClass, unique); case TYPE_TXT: return new Text(name, type, recordClass, unique); default: return new DNSQuestion(name, type, recordClass, unique);
return new Service(name, type, recordClass, unique); case TYPE_TXT: return new Text(name, type, recordClass, unique); default: return new DNSQuestion(name, type, recordClass, unique);
@Override public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) jmDNSImpl.getServices().get(this.getName().toLowerCase())); }
@Override public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) jmDNSImpl.getServices().get(this.getName().toLowerCase())); }
@Override public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl) { String name = this.getName().toLowerCase(); return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name); }
@Override public void addAnswers(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) { this.addAnswersForServiceInfo(jmDNSImpl, answers, (ServiceInfoImpl) jmDNSImpl.getServices().get(this.getName().toLowerCase())); }
@Override public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl) { String name = this.getName().toLowerCase(); return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().containsKey(name); }
@Override public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl) { String name = this.getName().toLowerCase(); return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name); }
@Override public boolean iAmTheOnlyOne(JmDNSImpl jmDNSImpl) { String name = this.getName().toLowerCase(); return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name); }