ZeroTierOne/java/src/com/zerotier/sdk/VirtualNetworkDNS.java
2020-11-24 14:12:30 -08:00

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; }
}