mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
Add tests for most command plugins
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package org.apollo.game.model;
|
||||
|
||||
import com.google.common.base.MoreObjects;
|
||||
import com.google.common.base.Objects;
|
||||
|
||||
/**
|
||||
* Represents an animation.
|
||||
*
|
||||
@@ -60,4 +63,28 @@ public final class Animation {
|
||||
return id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Animation animation = (Animation) o;
|
||||
return delay == animation.delay && id == animation.id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(delay, id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return MoreObjects.toStringHelper(this)
|
||||
.add("delay", delay)
|
||||
.add("id", id)
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user