Initial code drop
[bgpcep.git] / concepts / src / main / java / org / opendaylight / protocol / concepts / IPv4Prefix.java
1 /*
2  * Copyright (c) 2013 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.protocol.concepts;
9
10 /**
11  * IPv4 Address prefix.
12  */
13 public class IPv4Prefix extends AbstractPrefix<IPv4Address> {
14
15         private static final long serialVersionUID = 2206353300109616995L;
16
17         /**
18          * Construct an IPv4 prefix given a base IPv4 address and prefix
19          * length.
20          *
21          * @param address Base address
22          * @param length Prefix length, as to be between 0-32.
23          */
24         public IPv4Prefix(final IPv4Address address, final int length) {
25                 super(address, length);
26         }
27
28         @Override
29         public IPv4 getAddressFamily() {
30                 return IPv4.FAMILY;
31         }
32 }
33