84883c6adc66a06cb9058e6f503dbc70b16816ef
[controller.git] / opendaylight / 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 import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
13
14 /**
15  * @file   UpdateType.java
16  *
17  * @brief  Describes update types
18  *
19  */
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     @Override
34     public String toString() {
35         return "UpdateType[" + ReflectionToStringBuilder.toString(this) + "]";
36     }
37 }