Fair enough.

Serge Sozonoff wrote:

Hi Aaron,

The James DNSServer class has a custom Comparator and does the ordering. It
returns an ordered list.

Serge

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "James Developers List" <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 12:02 AM
Subject: Re: [PATCH] Upgrade to DnsJava 1.3.1, add DNS Server autodetect,
Make use of higher level api



I completely agree with Serge with respect to list vs collection. His
comments are, in fact, not open to disagreement. They are technical

facts.

However, I wonder if it might not be better to use a SortedSet to hold the
MX records. Are we certain that returning a correctly ordered list is
actually in the DNS server's contract? (Rather than just happening to be
the behaviour of the ones we test against?) If we use SortedSet, with a
custom Comparator, we can guarantee the correct ordering ourselves.

If the DNS rfc states that the ordering MUST be correct (not SHOULD or

MAY)

then a java.util.List is fine. Otherwise I believe that a
java.util.SortedSet is required.

Cheers

ADK

--------------------------------------------

There is no magic.


--------------------------------------------------------------------------

---------------------

Have you seen our website?.... http://www.vodafone.co.nz

CAUTION: This correspondence is confidential and intended for the named

recipient(s) only.

If you are not the named recipient and receive this correspondence in

error, you must not copy,

distribute or take any action in reliance on it and you should delete it

from your system and

notify the sender immediately. Thank you.

Unless otherwise stated, any views or opinions expressed are solely those

of the author and do

not represent those of Vodafone New Zealand Limited.

Vodafone New Zealand Limited
21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
Telephone + 64 9 357 5100
Facsimile + 64 9 377 0962

--
To unsubscribe, e-mail:

<mailto:[EMAIL PROTECTED]>

For additional commands, e-mail:

<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to