io.firebus.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebus-core Show documentation
Show all versions of firebus-core Show documentation
Firebus core functionality
package io.firebus;
public class Address
{
protected String address;
protected int port;
public Address(String a, int p)
{
address = a;
port = p;
}
public String getIPAddress()
{
return address;
}
public int getPort()
{
return port;
}
public boolean equals(Address a)
{
if(a != null && a.getIPAddress() != null && a.getIPAddress().equals(address) && a.getPort() == port)
return true;
else
return false;
}
public String toString()
{
return address + ":" + port;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy