Make sure invokeOperation is set once
[controller.git] / opendaylight / adsal / sal / api / src / main / java / org / opendaylight / controller / sal / core / UpdateType.java
1
2 /*
3  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
4  *
5  * This program and the accompanying materials are made available under the
6  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  * and is available at http://www.eclipse.org/legal/epl-v10.html
8  */
9
10 package org.opendaylight.controller.sal.core;
11
12
13 /**
14  * @file   UpdateType.java
15  *
16  * @brief  Describes update types
17  *
18  */
19 @Deprecated
20 public enum UpdateType {
21     ADDED("added"), REMOVED("removed"), CHANGED("changed");
22
23     private String name;
24
25     UpdateType(String name) {
26         this.name = name;
27     }
28
29     public String getName() {
30         return this.name;
31     }
32
33     public int calculateConsistentHashCode() {
34         if (this.name != null) {
35             return this.name.hashCode();
36         } else {
37             return 0;
38         }
39     }
40 }