|
|
@ -1,10 +1,9 @@
|
|
|
|
package me.goudham.domain;
|
|
|
|
package me.goudham.domain;
|
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Dimension;
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
public class MyClipboardContent<T> {
|
|
|
|
public class MyClipboardContent<T> {
|
|
|
|
private T oldContent;
|
|
|
|
private T oldContent;
|
|
|
|
private Dimension oldDimensionContent;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public MyClipboardContent() {
|
|
|
|
public MyClipboardContent() {
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -17,11 +16,16 @@ public class MyClipboardContent<T> {
|
|
|
|
return oldContent;
|
|
|
|
return oldContent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setOldDimensionContent(Dimension oldDimensionContent) {
|
|
|
|
@Override
|
|
|
|
this.oldDimensionContent = oldDimensionContent;
|
|
|
|
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() {
|
|
|
|
@Override
|
|
|
|
return oldDimensionContent;
|
|
|
|
public int hashCode() {
|
|
|
|
|
|
|
|
return Objects.hash(oldContent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|