From 82a3d5253c39b094466b413daca552779a32a968 Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 6 Dec 2018 15:58:15 +0100 Subject: [PATCH] Added Comparable interface to Content entitiy --- src/de/mas/wiiu/jnus/entities/content/Content.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/entities/content/Content.java b/src/de/mas/wiiu/jnus/entities/content/Content.java index a266fb1..6e06a77 100644 --- a/src/de/mas/wiiu/jnus/entities/content/Content.java +++ b/src/de/mas/wiiu/jnus/entities/content/Content.java @@ -36,7 +36,7 @@ import lombok.extern.java.Log; * */ @Log -public class Content { +public class Content implements Comparable { 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); + } + } \ No newline at end of file