Record Class MibEmbeddingIndex.IndexEntry
java.lang.Object
java.lang.Record
org.snmp4j.mcp.tool.mib.semantic.MibEmbeddingIndex.IndexEntry
- Record Components:
oid- dotted-decimal OID string (or object name when OID is absent)chunkIdx- zero-based chunk index within the object's descriptionname- object name (e.g."sysDescr")typeStr-SmiTypename (e.g."OBJECT_TYPE_SCALAR")syntaxStr-SmiSyntaxsyntax (e.g."DisplayString")descriptionSnippet- first 500 characters of the chunk text, ornull
- Enclosing class:
MibEmbeddingIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchunkIdx()Returns the value of thechunkIdxrecord component.Returns the value of thedescriptionSnippetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.oid()Returns the value of theoidrecord component.Returns the value of thesyntaxStrrecord component.final StringtoString()Returns a string representation of this record class.typeStr()Returns the value of thetypeStrrecord component.
-
Constructor Details
-
IndexEntry
public IndexEntry(String oid, int chunkIdx, String name, String typeStr, String syntaxStr, String descriptionSnippet) Creates an instance of aIndexEntryrecord class.- Parameters:
oid- the value for theoidrecord componentchunkIdx- the value for thechunkIdxrecord componentname- the value for thenamerecord componenttypeStr- the value for thetypeStrrecord componentsyntaxStr- the value for thesyntaxStrrecord componentdescriptionSnippet- the value for thedescriptionSnippetrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
oid
-
chunkIdx
-
name
-
typeStr
-
syntaxStr
-
descriptionSnippet
Returns the value of thedescriptionSnippetrecord component.- Returns:
- the value of the
descriptionSnippetrecord component
-