All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.r2cloud.ssdv.SsdvPacketComparator Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package ru.r2cloud.ssdv;

import java.util.Comparator;

public class SsdvPacketComparator implements Comparator {

	public static final SsdvPacketComparator INSTANCE = new SsdvPacketComparator();

	@Override
	public int compare(SsdvPacket o1, SsdvPacket o2) {
		int result = Integer.compare(o1.getImageId(), o2.getImageId());
		if (result != 0) {
			return result;
		}
		return Integer.compare(o1.getPacketId(), o2.getPacketId());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy