mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-06 16:48:17 +00:00
frame & timeline equals method
This commit is contained in:
@@ -88,6 +88,21 @@ public class Frame implements TreeItem, Exportable {
|
||||
return "frame_" + (frame + 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Frame) {
|
||||
Frame frameObj = (Frame) obj;
|
||||
return timeline.equals(frameObj.timeline) && frame == frameObj.frame;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return timeline.hashCode() ^ Integer.hashCode(frame);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isModified() {
|
||||
for (Tag t : innerTags) {
|
||||
|
||||
@@ -713,4 +713,14 @@ public class Timeline {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj instanceof Timeline) {
|
||||
Timeline timelineObj = (Timeline) obj;
|
||||
return timelined.equals(timelineObj.timelined) && parentTag == timelineObj.parentTag;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user