blob: d4acae6b13b09109f124d3a97fdd386edcf4b128 [file] [log] [blame]
Toshio Koide025a9152014-07-21 11:00:34 -07001package net.onrc.onos.core.matchaction;
2
3import net.onrc.onos.api.batchoperation.BatchOperationTargetId;
4
5public class MatchActionId extends BatchOperationTargetId {
6 private final String value;
7
8 public MatchActionId(String id) {
9 value = id;
10 }
11
12 @Override
13 public String toString() {
14 return value;
15 }
16
17 @Override
18 public int hashCode() {
19 return value.hashCode();
20 }
21
22 @Override
23 public boolean equals(Object obj) {
24 if (obj instanceof MatchActionId) {
25 MatchActionId other = (MatchActionId) obj;
26 return (this.value.equals(other.value));
27 }
28 return false;
29 }
30
31}