-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestHashing.java
More file actions
40 lines (33 loc) · 1.04 KB
/
TestHashing.java
File metadata and controls
40 lines (33 loc) · 1.04 KB
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
33
34
35
36
37
38
39
40
import java.util.*;
public class TestHashing {
public enum MediaConditionRuleMatchEventType {
PageView("pageView"),
AdView("adView"),
AdClick("adClick"),
AdRequest("adRequest"),
BeaconAdView("beaconAdView"),
BeaconAdClick("beaconAdClick"),
ConversionAction("conversionAction");
private final String _expressionValueName;
private static final MediaConditionRuleMatchEventType[] kVALUES = values();
MediaConditionRuleMatchEventType(String expressionValueName) {
_expressionValueName = expressionValueName;
}
}
static class MatchValue {
private final Long id;
private final MediaConditionRuleMatchEventType type;
public MatchValue(Long id, MediaConditionRuleMatchEventType type) {
this.id = id;
this.type = type;
}
public void printHashCode() {
System.out.println(id.hashCode());
System.out.println(type.hashCode());
}
}
public static void main(String[] args) {
MatchValue mv = new MatchValue(100L, MediaConditionRuleMatchEventType.PageView);
mv.printHashCode();
}
}