Record Class PolymorphicColumnType
java.lang.Object
java.lang.Record
com.snmp4j.smi.polymorphic.PolymorphicColumnType
- Record Components:
typeColumnOID- OID of the column that defines the polymorphic column type.variableColumnOIDToSyntaxMap- Mapping of variable values of the column type to their corresponding syntaxes for the polymorphic column.
- All Implemented Interfaces:
Comparable<org.snmp4j.smi.OID>
public record PolymorphicColumnType(org.snmp4j.smi.OID typeColumnOID, Map<org.snmp4j.smi.Variable, SmiSyntax> variableColumnOIDToSyntaxMap)
extends Record
implements Comparable<org.snmp4j.smi.OID>
Represents a polymorphic column type to variable format mapping in a polymorphic table.
- Since:
- 2.0.0
- Author:
- Frank Fock
-
Constructor Summary
ConstructorsConstructorDescriptionPolymorphicColumnType(org.snmp4j.smi.OID typeColumnOID, Map<org.snmp4j.smi.Variable, SmiSyntax> variableColumnOIDToSyntaxMap) Creates a new polymorphic column type. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(org.snmp4j.smi.OID o) booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.org.snmp4j.smi.OIDGets the OID of the column that defines the polymorphic column type.Gets the mapping of variable values of the column type to their corresponding syntaxes for the polymorphic column.
-
Constructor Details
-
PolymorphicColumnType
public PolymorphicColumnType(org.snmp4j.smi.OID typeColumnOID, Map<org.snmp4j.smi.Variable, SmiSyntax> variableColumnOIDToSyntaxMap) Creates a new polymorphic column type.- Parameters:
typeColumnOID- OID of the column that defines the polymorphic column type.variableColumnOIDToSyntaxMap- Mapping of variable values of the column type to their corresponding syntaxes for the polymorphic column.
-
-
Method Details
-
typeColumnOID
public org.snmp4j.smi.OID typeColumnOID()Gets the OID of the column that defines the polymorphic column type.- Returns:
- the OID of the column that defines the polymorphic column type.
-
variableColumnOIDToSyntaxMap
-
compareTo
public int compareTo(org.snmp4j.smi.OID o) - Specified by:
compareToin interfaceComparable<org.snmp4j.smi.OID>
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
toString
-