Order is now getting saved properly

Also enabled Java 8
This commit is contained in:
Michael Schättgen 2016-10-25 23:53:33 +02:00
parent 036dd2b2cb
commit 22524136a7
7 changed files with 106 additions and 25 deletions

View file

@ -1,6 +1,7 @@
package me.impy.aegis;
import java.io.Serializable;
import java.security.Key;
import me.impy.aegis.crypto.KeyInfo;
@ -9,5 +10,15 @@ public class KeyProfile implements Serializable {
public String Icon;
public String Code;
public KeyInfo Info;
public int Order;
public int ID;
public int compareTo(KeyProfile another) {
if (this.Order>another.Order){
return -1;
}else{
return 1;
}
}
}