Package org.opennms.nephron.network
Class IpValue
- java.lang.Object
-
- org.opennms.nephron.network.IpValue
-
- All Implemented Interfaces:
Serializable
public class IpValue extends Object implements Serializable
Copied from OpenNMS.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IpValue(List<IPAddressRange> ranges)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IPAddressRange>getIpAddressRanges()booleanisInRange(String address)static IpValueof(String input)static IpValueof(StringValue input)static IPAddressRangeparseCIDR(String cidr)
-
-
-
Constructor Detail
-
IpValue
public IpValue(List<IPAddressRange> ranges)
-
-
Method Detail
-
of
public static IpValue of(StringValue input)
-
isInRange
public boolean isInRange(String address)
-
getIpAddressRanges
public List<IPAddressRange> getIpAddressRanges()
-
parseCIDR
public static IPAddressRange parseCIDR(String cidr)
-
-