mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 21:53:12 +00:00
Flip sense of MeshMSMessage comparison to match other comparables
This commit is contained in:
parent
7c4c242577
commit
556dabe458
@ -108,13 +108,13 @@ public class MeshMSMessage implements Comparable<MeshMSMessage>{
|
||||
@Override
|
||||
public int compareTo(MeshMSMessage meshMSMessage) {
|
||||
if (this.myOffset < meshMSMessage.myOffset)
|
||||
return -1;
|
||||
return 1;
|
||||
if (this.myOffset > meshMSMessage.myOffset)
|
||||
return 1;
|
||||
if (this.theirOffset < meshMSMessage.theirOffset)
|
||||
return -1;
|
||||
if (this.theirOffset > meshMSMessage.theirOffset)
|
||||
if (this.theirOffset < meshMSMessage.theirOffset)
|
||||
return 1;
|
||||
if (this.theirOffset > meshMSMessage.theirOffset)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user