blob: c73ffce63af4c23d51f819cb76aa9b8056a1e4d9 (
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
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.data.util.sqlcontainer;
public class ReadOnlyRowId extends RowId {
private static final long serialVersionUID = -2626764781642012467L;
private final Integer rowNum;
public ReadOnlyRowId(int rowNum) {
super();
this.rowNum = rowNum;
}
@Override
public int hashCode() {
return rowNum.hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof ReadOnlyRowId)) {
return false;
}
return rowNum.equals(((ReadOnlyRowId) obj).rowNum);
}
public int getRowNum() {
return rowNum;
}
}
|