public final class ImmutableNode extends Object implements org.opennms.integration.api.v1.model.Node
Node that enforces deep immutability.| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableNode.Builder |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.opennms.integration.api.v1.model.NodeAssetRecord |
getAssetRecord() |
String |
getForeignId() |
String |
getForeignSource() |
Integer |
getId() |
Optional<org.opennms.integration.api.v1.model.IpInterface> |
getInterfaceByIp(InetAddress ipAddr) |
List<org.opennms.integration.api.v1.model.IpInterface> |
getIpInterfaces() |
String |
getLabel() |
String |
getLocation() |
List<org.opennms.integration.api.v1.model.MetaData> |
getMetaData() |
List<org.opennms.integration.api.v1.model.SnmpInterface> |
getSnmpInterfaces() |
int |
hashCode() |
static org.opennms.integration.api.v1.model.Node |
immutableCopy(org.opennms.integration.api.v1.model.Node node) |
static ImmutableNode.Builder |
newBuilder() |
static ImmutableNode.Builder |
newBuilderFrom(org.opennms.integration.api.v1.model.Node node) |
String |
toString() |
public static ImmutableNode.Builder newBuilder()
public static ImmutableNode.Builder newBuilderFrom(org.opennms.integration.api.v1.model.Node node)
public static org.opennms.integration.api.v1.model.Node immutableCopy(org.opennms.integration.api.v1.model.Node node)
public Integer getId()
getId in interface org.opennms.integration.api.v1.model.Nodepublic String getForeignSource()
getForeignSource in interface org.opennms.integration.api.v1.model.Nodepublic String getForeignId()
getForeignId in interface org.opennms.integration.api.v1.model.Nodepublic String getLabel()
getLabel in interface org.opennms.integration.api.v1.model.Nodepublic String getLocation()
getLocation in interface org.opennms.integration.api.v1.model.Nodepublic org.opennms.integration.api.v1.model.NodeAssetRecord getAssetRecord()
getAssetRecord in interface org.opennms.integration.api.v1.model.Nodepublic List<org.opennms.integration.api.v1.model.IpInterface> getIpInterfaces()
getIpInterfaces in interface org.opennms.integration.api.v1.model.Nodepublic Optional<org.opennms.integration.api.v1.model.IpInterface> getInterfaceByIp(InetAddress ipAddr)
getInterfaceByIp in interface org.opennms.integration.api.v1.model.Nodepublic List<org.opennms.integration.api.v1.model.SnmpInterface> getSnmpInterfaces()
getSnmpInterfaces in interface org.opennms.integration.api.v1.model.Nodepublic List<org.opennms.integration.api.v1.model.MetaData> getMetaData()
getMetaData in interface org.opennms.integration.api.v1.model.NodeCopyright © 2019. All rights reserved.