Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 1 | package net.onrc.onos.intent; |
2 | |||||
3 | /** | ||||
4 | * @author Toshio Koide (t-koide@onlab.us) | ||||
5 | */ | ||||
6 | public abstract class Intent { | ||||
Toshio Koide | 13986d1 | 2014-02-11 20:25:32 -0800 | [diff] [blame^] | 7 | protected String id; |
8 | |||||
9 | public Intent(String id) { | ||||
10 | this.id = id; | ||||
11 | } | ||||
12 | |||||
13 | public String getId() { | ||||
14 | return id; | ||||
15 | } | ||||
16 | |||||
17 | @Override | ||||
18 | public int hashCode() { | ||||
19 | return id.hashCode(); | ||||
20 | } | ||||
Toshio Koide | ad17d5e | 2014-02-11 11:36:02 -0800 | [diff] [blame] | 21 | } |