mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 13:33:07 +00:00
31 lines
813 B
Java
31 lines
813 B
Java
/*
|
|
* ZeroTier One - Network Virtualization Everywhere
|
|
* Copyright (C) 2011-2020 ZeroTier, Inc. https://www.zerotier.com/
|
|
*/
|
|
|
|
package com.zerotier.sdk;
|
|
|
|
import java.net.InetSocketAddress;
|
|
import java.util.ArrayList;
|
|
|
|
public class VirtualNetworkDNS implements Comparable<VirtualNetworkDNS> {
|
|
private String domain;
|
|
private ArrayList<InetSocketAddress> servers;
|
|
|
|
public VirtualNetworkDNS() {}
|
|
|
|
public boolean equals(VirtualNetworkDNS o) {
|
|
if (o == null) return false;
|
|
return domain.equals(o.domain) && servers.equals(o.servers);
|
|
}
|
|
|
|
@Override
|
|
public int compareTo(VirtualNetworkDNS o) {
|
|
return domain.compareTo(o.domain);
|
|
}
|
|
|
|
public String getSearchDomain() { return domain; }
|
|
|
|
public ArrayList<InetSocketAddress> getServers() { return servers; }
|
|
}
|