Class SnmpObjId

  • All Implemented Interfaces:
    java.lang.Comparable<SnmpObjId>
    Direct Known Subclasses:
    SnmpInstId

    public class SnmpObjId
    extends java.lang.Object
    implements java.lang.Comparable<SnmpObjId>
    • Constructor Detail

      • SnmpObjId

        protected SnmpObjId()
      • SnmpObjId

        public SnmpObjId​(int[] ids,
                         boolean clone)
        These constructors are private. The get method should be called to create a new oid
      • SnmpObjId

        protected SnmpObjId​(int[] ids)
        These constructors are private. The get method should be called to create a new oid
      • SnmpObjId

        protected SnmpObjId​(java.lang.String oid)
        These constructors are private. The get method should be called to create a new oid
      • SnmpObjId

        protected SnmpObjId​(SnmpObjId oid)
        These constructors are private. The get method should be called to create a new oid
    • Method Detail

      • getIds

        public int[] getIds()
      • convertStringToInts

        public static int[] convertStringToInts​(java.lang.String oid)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • addPrefixDotInToString

        protected boolean addPrefixDotInToString()
      • compareTo

        public int compareTo​(SnmpObjId o)
        Specified by:
        compareTo in interface java.lang.Comparable<SnmpObjId>
      • append

        public SnmpObjId append​(java.lang.String inst)
      • append

        public SnmpObjId append​(int[] instIds)
      • get

        public static SnmpObjId get​(java.lang.String oid)
      • get

        public static SnmpObjId get​(int[] ids)
      • get

        public static SnmpObjId get​(java.lang.String objId,
                                    java.lang.String instance)
      • isPrefixOf

        public boolean isPrefixOf​(SnmpObjId other)
      • length

        public int length()
      • getPrefix

        public SnmpObjId getPrefix​(int length)
      • getSubIdAt

        public int getSubIdAt​(int index)
      • getLastSubId

        public int getLastSubId()
      • isSuccessorOf

        public boolean isSuccessorOf​(SnmpObjId base)
        If requesting a GETNEXT on the given base OID, would the current OID be expected in a response? Returns true if this OID is a successor (greater than) the given OID, or false otherwise.
        Parameters:
        base - base oid against which to compare
        Returns:
        true if this OID is a successor of the "base" oid, false otherwise