aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/web/PDFContainer.java27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/PDFContainer.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/PDFContainer.java
new file mode 100644
index 0000000..6c9823c
--- /dev/null
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/PDFContainer.java
@@ -0,0 +1,27 @@
+package at.knowcenter.wag.egov.egiz.web;
+
+public class PDFContainer {
+
+ public long id;
+ public byte[] pdf;
+
+
+ public PDFContainer(byte[] pdf, long id) {
+ this.id = id;
+ this.pdf = pdf;
+ }
+
+ public boolean equals(Object pc) {
+ if(pc instanceof PDFContainer) {
+ return (this.id == ((PDFContainer)pc).id);
+ }
+ return false;
+ }
+ public int hashCode() {
+ Long l = new Long(this.id);
+ return l.intValue();
+ }
+
+}
+
+