blob: 7235a2bbe767e0e14344888e7a6a627d35f59b79 [file] [log] [blame]
Madan Jampanic27b6b22016-02-05 11:36:31 -08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
Madan Jampanic27b6b22016-02-05 11:36:31 -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.iptopology.api;
17
Jian Lid79fb942016-02-29 13:42:23 -080018import org.onlab.util.Identifier;
Madan Jampanic27b6b22016-02-05 11:36:31 -080019
20/**
21 * Area identifier class (32 Bit Area-ID).
22 */
Jian Lid79fb942016-02-29 13:42:23 -080023public class AreaId extends Identifier<Integer> {
Madan Jampanic27b6b22016-02-05 11:36:31 -080024 /**
25 * Constructor to set area identifier.
26 *
27 * @param areaId area id
28 */
29 public AreaId(int areaId) {
Jian Lid79fb942016-02-29 13:42:23 -080030 super(areaId);
Madan Jampanic27b6b22016-02-05 11:36:31 -080031 }
32
33 /**
34 * obtain area identifier.
35 *
36 * @return area identifier
37 */
38 public int areaId() {
Jian Lid79fb942016-02-29 13:42:23 -080039 return identifier;
Madan Jampanic27b6b22016-02-05 11:36:31 -080040 }
Satish Kf6d87cb2015-11-30 19:59:22 +053041}