-
-// /* Find the sequence with the minimum packet lengths.
-// * The second-layer list should contain the minimum sequence for element 0 and maximum sequence for element 1.
-// */
-// private List<List<List<PcapPacket>>> getSequenceRanges(List<List<List<PcapPacket>>> signature) {
-//
-// // Start from the first index
-// List<List<List<PcapPacket>>> rangeBasedSequence = new ArrayList<>();
-// for (List<List<PcapPacket>> listListPcapPacket : signature) {
-// List<List<PcapPacket>> minMaxSequence = new ArrayList<>();
-// // Both searches start from index 0
-// List<PcapPacket> minSequence = new ArrayList<>(listListPcapPacket.get(0));
-// List<PcapPacket> maxSequence = new ArrayList<>(listListPcapPacket.get(0));
-// for (List<PcapPacket> listPcapPacket : listListPcapPacket) {
-// for (PcapPacket pcapPacket : listPcapPacket) {
-// int index = listPcapPacket.indexOf(pcapPacket);
-// // Set the new minimum if length at the index is minimum
-// if (pcapPacket.length() < minSequence.get(index).length()) {
-// minSequence.set(index, pcapPacket);
-// }
-// // Set the new maximum if length at the index is maximum
-// if (pcapPacket.length() > maxSequence.get(index).length()) {
-// maxSequence.set(index, pcapPacket);
-// }
-// }
-// }
-// // minSequence as element 0 and maxSequence as element 1
-// minMaxSequence.add(minSequence);
-// minMaxSequence.add(maxSequence);
-// rangeBasedSequence.add(minMaxSequence);
-// }
-//
-// return rangeBasedSequence;
-// }