Package org.opennms.netmgt.flows.api
Class Host
- java.lang.Object
-
- org.opennms.netmgt.flows.api.Host
-
public class Host extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Host.Builder
-
Constructor Summary
Constructors Constructor Description Host(java.lang.String ip)
Host(java.lang.String ip, java.lang.String hostname)
Host(Host.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Host.Builder
builder()
boolean
equals(java.lang.Object o)
static Host.Builder
forOther()
static Host.Builder
from(java.lang.String ip)
static Host.Builder
from(Host host)
java.util.Optional<java.lang.String>
getHostname()
java.lang.String
getIp()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Host
public Host(java.lang.String ip)
-
Host
public Host(java.lang.String ip, java.lang.String hostname)
-
Host
public Host(Host.Builder builder)
-
-
Method Detail
-
getIp
public java.lang.String getIp()
-
getHostname
public java.util.Optional<java.lang.String> getHostname()
-
builder
public static Host.Builder builder()
-
from
public static Host.Builder from(java.lang.String ip)
-
from
public static Host.Builder from(Host host)
-
forOther
public static Host.Builder forOther()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-