blob: adb16ca55b0d1c49af9d0f2d4d707eabc70d8501 [file] [log] [blame]
Madan Jampanic27b6b22016-02-05 11:36:31 -08001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
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 */
16
17package org.onosproject.iptopology.api;
18
Jian Lid79fb942016-02-29 13:42:23 -080019import org.onlab.util.Identifier;
Madan Jampanic27b6b22016-02-05 11:36:31 -080020
21/**
22 * Domain Identifier(32 Bit).
23 */
Jian Lid79fb942016-02-29 13:42:23 -080024public class DomainId extends Identifier<Integer> {
Madan Jampanic27b6b22016-02-05 11:36:31 -080025 /**
26 * Constructor to initialize domain identifier.
27 *
28 * @param domainIdentifier domain identifier
29 */
30 public DomainId(int domainIdentifier) {
Jian Lid79fb942016-02-29 13:42:23 -080031 super(domainIdentifier);
Madan Jampanic27b6b22016-02-05 11:36:31 -080032 }
33
34 /**
35 * Obtain domain identifier.
36 *
37 * @return domain identifier
38 */
39 public int domainIdentifier() {
Jian Lid79fb942016-02-29 13:42:23 -080040 return identifier;
Madan Jampanic27b6b22016-02-05 11:36:31 -080041 }
Satish Kf6d87cb2015-11-30 19:59:22 +053042}