Implement Cloneable for all primitive wrappers

This commit is contained in:
SpaiR committed 2020-06-06 16:40:08 +03:00
1 parent 1e52d6ef82
commit 71e7265858
9 files changed
+100 -9

No files matched your search

+10 -1
View File
@@ -2,12 +2,16 @@ package imgui;
import java.util.Objects;
public final class ImLong {
public final class ImLong implements Cloneable {
final long[] data = new long[]{0};
public ImLong() {
}
public ImLong(final ImLong imLong) {
this.data[0] = imLong.data[0];
}
public ImLong(final long value) {
set(value);
}
@@ -41,4 +45,9 @@ public final class ImLong {
public int hashCode() {
return Objects.hashCode(data[0]);
}
@Override
public ImLong clone() {
return new ImLong(this);
}
}