Added Comparable interface to Content entitiy

This commit is contained in:
Maschell 2018-12-06 15:58:15 +01:00
parent 4424be0722
commit 82a3d5253c

View File

@ -36,7 +36,7 @@ import lombok.extern.java.Log;
*
*/
@Log
public class Content {
public class Content implements Comparable<Content> {
public static final short CONTENT_FLAG_UNKWN1 = 0x4000;
public static final short CONTENT_HASHED = 0x0002;
public static final short CONTENT_ENCRYPTED = 0x0001;
@ -199,4 +199,9 @@ public class Content {
private ContentFSTInfo contentFSTInfo;
}
@Override
public int compareTo(Content o) {
return Integer.compare(this.ID, o.ID);
}
}