Package com.hp.ucmdb.api.discovery.types
Interface IPRange
- All Superinterfaces:
Serializable
Created by wangzhon on 2015/8/26.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Define the type value of IP Rangestatic enum
Define the category of IP Range -
Method Summary
Modifier and TypeMethodDescriptionint
get cidr mask (if value = 0, the range is not cidr type)getEndIP()
Returns the String value of the last IP.Returns the type of the IP range.Returns the category of the IP range.Returns the String value of the first IP.boolean
Returns the String format of the IP range.toRangeString
(String separator) Returns the String format of the IP range.
-
Method Details
-
getStartIP
String getStartIP()Returns the String value of the first IP.- Returns:
- the StartIP.
-
getCidrMask
int getCidrMask()get cidr mask (if value = 0, the range is not cidr type)- Returns:
-
isChanged
boolean isChanged() -
getEndIP
String getEndIP()Returns the String value of the last IP.- Returns:
- the EndIP.
-
getIPType
IPRange.IPType getIPType()Returns the type of the IP range.- Returns:
- the IPType.
-
getRangeCategory
IPRange.RangeCategory getRangeCategory()Returns the category of the IP range.- Returns:
- the RangeCategory.
-
toRangeString
Returns the String format of the IP range.- Returns:
- the RangeString.
-
toDelimiterRange
String toDelimiterRange()Returns the String format of the IP range.- Returns:
- the RangeString.
-