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.Globals;
import java.io.Serializable;
/**
* IP address range define
* IP地址范围定义
*
* @author Steven Wee [email protected]
* @version $Revision: 1.1.3 $Date: Dec 10, 2021 18:25:52 $
*/
public final class IPRange implements Serializable {
/**
* Serial version UID
* 序列化UID
*/
private static final long serialVersionUID = 7569297312912043791L;
/**
* Enumeration value of IPType
* 地址类型枚举值
* @see org.nervousync.enumerations.ip.IPType
*/
private IPType ipType;
/**
* IP range begin address
* IP范围起始地址
*/
private String beginAddress = Globals.DEFAULT_VALUE_STRING;
/**
* IP range end address
* IP范围终止地址
*/
private String endAddress = Globals.DEFAULT_VALUE_STRING;
/**
* Constructor for IPRange
* IPRange默认构造方法
*/
public IPRange() {
}
/**
* Getter method for IP type
* 地址类型的Getter方法
*
* @return Value of IPType
* 地址类型枚举值
* @see org.nervousync.enumerations.ip.IPType
*/
public IPType getIpType() {
return ipType;
}
/**
* Setter method for IP type
* 地址类型的Setter方法
*
* @param ipType Value of IPType
* 地址类型枚举值
* @see org.nervousync.enumerations.ip.IPType
*/
public void setIpType(IPType ipType) {
this.ipType = ipType;
}
/**
* Getter method for IP range begin address
* IP范围起始地址的Getter方法
*
* @return Value of IP range begin address
* IP范围起始地址
*/
public String getBeginAddress() {
return beginAddress;
}
/**
* Setter method for IP range begin address
* IP范围起始地址的Setter方法
*
* @param beginAddress Value of IP range begin address
* IP范围起始地址
*/
public void setBeginAddress(String beginAddress) {
this.beginAddress = beginAddress;
}
/**
* Getter method for IP range end address
* IP范围终止地址的Getter方法
*
* @return Value of IP range end address
* IP范围终止地址
*/
public String getEndAddress() {
return endAddress;
}
/**
* Setter method for IP range end address
* IP范围终止地址的Setter方法
*
* @param endAddress Value of IP range end address
* IP范围终止地址
*/
public void setEndAddress(String endAddress) {
this.endAddress = endAddress;
}
}