Class DNSQuestion.AllRecords

  • Enclosing class:
    DNSQuestion

    private static class DNSQuestion.AllRecords
    extends DNSQuestion
    AllRecords question.
    • Method Detail

      • isSameType

        public boolean isSameType​(DNSEntry entry)
        Description copied from class: DNSEntry
        Check that 2 entries are of the same type.
        Overrides:
        isSameType in class DNSEntry
        Returns:
        true is the two type are the same, false otherwise.
      • addAnswers

        public void addAnswers​(JmDNSImpl jmDNSImpl,
                               java.util.Set<DNSRecord> answers)
        Description copied from class: DNSQuestion
        Adds answers to the list for our question.
        Overrides:
        addAnswers in class DNSQuestion
        Parameters:
        jmDNSImpl - DNS holding the records
        answers - List of previous answer to append.
      • iAmTheOnlyOne

        public boolean iAmTheOnlyOne​(JmDNSImpl jmDNSImpl)
        Description copied from class: DNSQuestion
        Checks if we are the only to be able to answer that question.
        Overrides:
        iAmTheOnlyOne in class DNSQuestion
        Parameters:
        jmDNSImpl - DNS holding the records
        Returns:
        true if we are the only one with the answer to the question, false otherwise.