Package javax.jmdns.impl
Class DNSQuestion.AllRecords
java.lang.Object
javax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSQuestion
javax.jmdns.impl.DNSQuestion.AllRecords
- Enclosing class:
DNSQuestion
AllRecords question.
-
Field Summary
Fields inherited from class javax.jmdns.impl.DNSEntry
_qualifiedNameMap
-
Constructor Summary
ConstructorsConstructorDescriptionAllRecords
(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnswers
(JmDNSImpl jmDNSImpl, Set<DNSRecord> answers) Adds answers to the list for our question.boolean
iAmTheOnlyOne
(JmDNSImpl jmDNSImpl) Checks if we are the only to be able to answer that question.boolean
isSameType
(DNSEntry entry) Check that 2 entries are of the same type.Methods inherited from class javax.jmdns.impl.DNSQuestion
addAnswersForServiceInfo, answeredBy, isExpired, isStale, newQuestion, toString
Methods inherited from class javax.jmdns.impl.DNSEntry
compareTo, equals, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, matchRecordClass, matchRecordType, sameSubtype, toByteArray, toByteArray, toString
-
Constructor Details
-
AllRecords
AllRecords(String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique)
-
-
Method Details
-
isSameType
Description copied from class:DNSEntry
Check that 2 entries are of the same type.- Overrides:
isSameType
in classDNSEntry
- Parameters:
entry
-- Returns:
true
is the two type are the same,false
otherwise.
-
addAnswers
Description copied from class:DNSQuestion
Adds answers to the list for our question.- Overrides:
addAnswers
in classDNSQuestion
- Parameters:
jmDNSImpl
- DNS holding the recordsanswers
- List of previous answer to append.
-
iAmTheOnlyOne
Description copied from class:DNSQuestion
Checks if we are the only to be able to answer that question.- Overrides:
iAmTheOnlyOne
in classDNSQuestion
- Parameters:
jmDNSImpl
- DNS holding the records- Returns:
true
if we are the only one with the answer to the question,false
otherwise.
-