1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.application.viewstate;
20
21 import java.io.Serializable;
22
23
24
25
26
27 class IntIntSerializedViewKey extends SerializedViewKey implements Serializable
28 {
29 private static final long serialVersionUID = -1170697124386063642L;
30 final int _viewId;
31 final int _sequenceId;
32
33 public IntIntSerializedViewKey(int viewId, int sequence)
34 {
35 _sequenceId = sequence;
36 _viewId = viewId;
37 }
38
39 @Override
40 public boolean equals(Object obj)
41 {
42 if (obj == null)
43 {
44 return false;
45 }
46 if (getClass() != obj.getClass())
47 {
48 return false;
49 }
50 final IntIntSerializedViewKey other = (IntIntSerializedViewKey) obj;
51 if (this._viewId != other._viewId)
52 {
53 return false;
54 }
55 if (this._sequenceId != other._sequenceId)
56 {
57 return false;
58 }
59 return true;
60 }
61
62 @Override
63 public int hashCode()
64 {
65 int hash = 7;
66 hash = 83 * hash + this._viewId;
67 hash = 83 * hash + this._sequenceId;
68 return hash;
69 }
70
71 }