Class 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​(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​(String oid)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • addPrefixDotInToString

        protected boolean addPrefixDotInToString()
      • append

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

        public static SnmpObjId get​(int[] ids)
      • 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