org.nervousync.beans.ip.IPRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-jdk11 Show documentation
Show all versions of utils-jdk11 Show documentation
Java utility collections, development by Nervousync Studio (NSYC)
/*
* Licensed to the Nervousync Studio (NSYC) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.nervousync.beans.ip;
import org.nervousync.enumerations.ip.IPType;
import org.nervousync.commons.core.Globals;
import java.io.Serializable;
/**
* The type Ip range.
*
* @author Steven Wee [email protected]
* @version $Revision : 1.0 $Date: 2018-09-21 18:25
*/
public final class IPRange implements Serializable {
private static final long serialVersionUID = 7569297312912043791L;
/**
* IP address type
*/
private IPType ipType;
/**
* Begin address
*/
private String beginAddress = Globals.DEFAULT_VALUE_STRING;
/**
* End address
*/
private String endAddress = Globals.DEFAULT_VALUE_STRING;
/**
* Instantiates a new Ip range.
*/
public IPRange() {
}
/**
* Gets the ip type.
*
* @return the ip type
*/
public IPType getIpType() {
return ipType;
}
/**
* Sets the ip type.
*
* @param ipType the ip type
*/
public void setIpType(IPType ipType) {
this.ipType = ipType;
}
/**
* Gets begin address.
*
* @return the beginning address
*/
public String getBeginAddress() {
return beginAddress;
}
/**
* Sets begin address.
*
* @param beginAddress the beginning address
*/
public void setBeginAddress(String beginAddress) {
this.beginAddress = beginAddress;
}
/**
* Gets end address.
*
* @return the end address
*/
public String getEndAddress() {
return endAddress;
}
/**
* Sets end address.
*
* @param endAddress the end address
*/
public void setEndAddress(String endAddress) {
this.endAddress = endAddress;
}
}