Class ImmutableNode
- java.lang.Object
-
- org.opennms.integration.api.v1.model.immutables.ImmutableNode
-
- All Implemented Interfaces:
org.opennms.integration.api.v1.model.Node
public final class ImmutableNode extends java.lang.Object implements org.opennms.integration.api.v1.model.NodeAn immutable implementation ofNodethat enforces deep immutability.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableNode.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)org.opennms.integration.api.v1.model.NodeAssetRecordgetAssetRecord()java.util.List<java.lang.String>getCategories()java.lang.StringgetForeignId()java.lang.StringgetForeignSource()java.lang.IntegergetId()java.util.Optional<org.opennms.integration.api.v1.model.IpInterface>getInterfaceByIp(java.net.InetAddress ipAddr)java.util.List<org.opennms.integration.api.v1.model.IpInterface>getIpInterfaces()java.lang.StringgetLabel()java.lang.StringgetLocation()java.util.List<org.opennms.integration.api.v1.model.MetaData>getMetaData()java.util.List<org.opennms.integration.api.v1.model.SnmpInterface>getSnmpInterfaces()inthashCode()static org.opennms.integration.api.v1.model.NodeimmutableCopy(org.opennms.integration.api.v1.model.Node node)static ImmutableNode.BuildernewBuilder()static ImmutableNode.BuildernewBuilderFrom(org.opennms.integration.api.v1.model.Node node)java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static ImmutableNode.Builder newBuilder()
-
newBuilderFrom
public static ImmutableNode.Builder newBuilderFrom(org.opennms.integration.api.v1.model.Node node)
-
immutableCopy
public static org.opennms.integration.api.v1.model.Node immutableCopy(org.opennms.integration.api.v1.model.Node node)
-
getId
public java.lang.Integer getId()
- Specified by:
getIdin interfaceorg.opennms.integration.api.v1.model.Node
-
getForeignSource
public java.lang.String getForeignSource()
- Specified by:
getForeignSourcein interfaceorg.opennms.integration.api.v1.model.Node
-
getForeignId
public java.lang.String getForeignId()
- Specified by:
getForeignIdin interfaceorg.opennms.integration.api.v1.model.Node
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabelin interfaceorg.opennms.integration.api.v1.model.Node
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocationin interfaceorg.opennms.integration.api.v1.model.Node
-
getAssetRecord
public org.opennms.integration.api.v1.model.NodeAssetRecord getAssetRecord()
- Specified by:
getAssetRecordin interfaceorg.opennms.integration.api.v1.model.Node
-
getIpInterfaces
public java.util.List<org.opennms.integration.api.v1.model.IpInterface> getIpInterfaces()
- Specified by:
getIpInterfacesin interfaceorg.opennms.integration.api.v1.model.Node
-
getInterfaceByIp
public java.util.Optional<org.opennms.integration.api.v1.model.IpInterface> getInterfaceByIp(java.net.InetAddress ipAddr)
- Specified by:
getInterfaceByIpin interfaceorg.opennms.integration.api.v1.model.Node
-
getSnmpInterfaces
public java.util.List<org.opennms.integration.api.v1.model.SnmpInterface> getSnmpInterfaces()
- Specified by:
getSnmpInterfacesin interfaceorg.opennms.integration.api.v1.model.Node
-
getMetaData
public java.util.List<org.opennms.integration.api.v1.model.MetaData> getMetaData()
- Specified by:
getMetaDatain interfaceorg.opennms.integration.api.v1.model.Node
-
getCategories
public java.util.List<java.lang.String> getCategories()
- Specified by:
getCategoriesin interfaceorg.opennms.integration.api.v1.model.Node
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-