blob: b4bca75a2a67fa16237f6456501d0380df5cdc88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.data.util.sqlcontainer;
public class TemporaryRowId extends RowId {
private static final long serialVersionUID = -641983830469018329L;
public TemporaryRowId(Object[] id) {
super(id);
}
@Override
public int hashCode() {
return id.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof TemporaryRowId)) {
return false;
}
Object[] compId = ((TemporaryRowId) obj).getId();
return id.equals(compId);
}
@Override
public String toString() {
return "Temporary row id";
}
}
|