blob: 3e069c2740500faed84b5e4d528ead9961fae16f [file] [log] [blame]
Toshio Koide025a9152014-07-21 11:00:34 -07001package net.onrc.onos.core.matchaction;
2
Toshio Koide4ea84192014-07-31 12:10:12 -07003import net.onrc.onos.api.batchoperation.IBatchOperationTarget;
Toshio Koide025a9152014-07-21 11:00:34 -07004
Toshio Koide4ea84192014-07-31 12:10:12 -07005public class MatchActionId implements IBatchOperationTarget {
Toshio Koide025a9152014-07-21 11:00:34 -07006 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}