public class IpList extends Object
Constructor and Description |
---|
IpList(List<Object> list)
Get a new IP list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String ip) |
Object |
getAttachement(String ip) |
String |
getAttachementKey() |
String |
getElementFor(String ip)
Use this only for debugging purpose.
|
String |
toString() |
public IpList(List<Object> list) throws UnknownHostException
list
- the list of IP addresses. Either fixed regular IPs, or CIDR notations. You can use a mix of the two.UnknownHostException
- should one of them be invalidpublic boolean contains(String ip)
ip
- the ip you look forpublic Object getAttachement(String ip)
ip
- the ip you look forpublic String getElementFor(String ip)
ip
- the ip you look forpublic String getAttachementKey()
Copyright © 2023. All rights reserved.