|
|
|
@ -1,10 +1,9 @@
|
|
|
|
|
package me.goudham.domain;
|
|
|
|
|
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
public class MyClipboardContent<T> {
|
|
|
|
|
private T oldContent;
|
|
|
|
|
private Dimension oldDimensionContent;
|
|
|
|
|
|
|
|
|
|
public MyClipboardContent() {
|
|
|
|
|
}
|
|
|
|
@ -17,11 +16,16 @@ public class MyClipboardContent<T> {
|
|
|
|
|
return oldContent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOldDimensionContent(Dimension oldDimensionContent) {
|
|
|
|
|
this.oldDimensionContent = oldDimensionContent;
|
|
|
|
|
@Override
|
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
|
if (this == o) return true;
|
|
|
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
|
|
|
MyClipboardContent<?> that = (MyClipboardContent<?>) o;
|
|
|
|
|
return Objects.equals(oldContent, that.oldContent);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Dimension getOldDimensionContent() {
|
|
|
|
|
return oldDimensionContent;
|
|
|
|
|
@Override
|
|
|
|
|
public int hashCode() {
|
|
|
|
|
return Objects.hash(oldContent);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|