Merge "Sonar issues"
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / util / IntegerIpAddress.java
1 /**
2  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.openflowplugin.impl.util;
9
10 /**
11  * 4B base + 4B mask wrapper
12  */
13 public class IntegerIpAddress {
14
15     int ip;
16     int mask;
17
18     public IntegerIpAddress(final int ip, final int mask) {
19         this.ip = ip;
20         this.mask = mask;
21     }
22
23     public int getIp() {
24         return ip;
25     }
26
27     public int getMask() {
28         return mask;
29     }
30 }