SortedMap with multiple fields for keys and values
<p>I need to have a sortedMap with these fields for each key
[srcAddr, dstAddr, srcPort, dstPort, protocol] (this is corresponding to a flow)</p>

<p>then this key contains a list of values each containing some fields. such as:
packetLenghth,timeArrival for packet 1
packetLength, timeArrival for packet 2
.
.
.
and so on.</p>

<p>In other words each packet is examined whether it belongs to a Flow or not based on those 5 mentioned fields.
then for that particular packet some informarion will be extracted.
for the next packet, if it belongs to that Flow, a new flow wont be added but information about that packet will be added.</p>

<p>i was thinking of having to separate classes myKeys and myValues each with desired fields.
myKeys need to implement compareTo, hashCode, equal.</p>

<p>but i dont know if im right. can anyone help me with it please?</p>
