blob: 39c9b56dbba137d6c4cebc483333af9337e9640d [file] [log] [blame]
YuanyouZhangf26445a2015-07-22 17:13:18 +08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2015-present Open Networking Laboratory
YuanyouZhangf26445a2015-07-22 17:13:18 +08003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.ovsdb.controller;
17
Jian Li597d7b22016-02-29 14:06:55 -080018import org.onlab.util.Identifier;
19
YuanyouZhangf26445a2015-07-22 17:13:18 +080020import static com.google.common.base.Preconditions.checkNotNull;
YuanyouZhangf26445a2015-07-22 17:13:18 +080021
22/**
BitOhenry9b161fb2015-10-28 14:59:48 +080023 * The class representing an ifaceid.
24 * This class is immutable.
YuanyouZhangf26445a2015-07-22 17:13:18 +080025 */
Jian Li597d7b22016-02-29 14:06:55 -080026public class OvsdbIfaceId extends Identifier<String> {
YuanyouZhangf26445a2015-07-22 17:13:18 +080027 /**
BitOhenry9b161fb2015-10-28 14:59:48 +080028 * Constructor from a String.
YuanyouZhangf26445a2015-07-22 17:13:18 +080029 *
30 * @param value the ifaceid to use
31 */
32 public OvsdbIfaceId(String value) {
Jian Li597d7b22016-02-29 14:06:55 -080033 super(checkNotNull(value, "value is not null"));
YuanyouZhangf26445a2015-07-22 17:13:18 +080034 }
35
36 /**
BitOhenry9b161fb2015-10-28 14:59:48 +080037 * Gets the value of ifaceid.
YuanyouZhangf26445a2015-07-22 17:13:18 +080038 *
BitOhenry9b161fb2015-10-28 14:59:48 +080039 * @return the value of ifaceid
YuanyouZhangf26445a2015-07-22 17:13:18 +080040 */
41 public String value() {
Jian Li597d7b22016-02-29 14:06:55 -080042 return identifier;
YuanyouZhangf26445a2015-07-22 17:13:18 +080043 }
44}