Add compareTo to ResourceDecalImage after merge with k-integration
This commit is contained in:
parent
9ea9ed2d82
commit
115e0b143a
@ -6,6 +6,7 @@ import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import net.sf.openrocket.appearance.DecalImage;
|
||||
import net.sf.openrocket.document.Attachment;
|
||||
|
||||
|
||||
class ResourceDecalImage implements DecalImage {
|
||||
@ -31,4 +32,9 @@ class ResourceDecalImage implements DecalImage {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Attachment a) {
|
||||
return this.hashCode() - a.hashCode();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user