1
2
3
4
5
6 package mockit.asm.constantPool;
7
8 import edu.umd.cs.findbugs.annotations.NonNull;
9
10 import org.checkerframework.checker.index.qual.NonNegative;
11
12 public class LongValueItem extends Item {
13
14
15
16 long longVal;
17
18 LongValueItem(@NonNegative int index) {
19 super(index);
20 }
21
22 LongValueItem(@NonNegative int index, @NonNull LongValueItem item) {
23 super(index, item);
24 longVal = item.longVal;
25 }
26
27 public final void setValue(long value) {
28 longVal = value;
29 setHashCode((int) value);
30 }
31
32 @Override
33 final boolean isEqualTo(@NonNull Item item) {
34 return ((LongValueItem) item).longVal == longVal;
35 }
36 }