Class SnmpTable<T extends SnmpStore>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, Collectable, ProxiableTracker
    Direct Known Subclasses:
    TcaData

    public abstract class SnmpTable<T extends SnmpStore>
    extends AggregateTracker
    implements java.util.Collection<T>

    Abstract SnmpTable class.

    Version:
    $Id: $
    Author:
    ranger
    • Constructor Detail

      • SnmpTable

        protected SnmpTable​(java.net.InetAddress address,
                            java.lang.String tableName,
                            NamedSnmpVar[] columns)

        Constructor for SnmpTable.

        Type Parameters:
        T - a T object.
        Parameters:
        address - a InetAddress object.
        tableName - a String object.
        columns - an array of org.opennms.netmgt.capsd.snmp.NamedSnmpVar objects.
    • Method Detail

      • createTableEntry

        protected abstract T createTableEntry​(SnmpObjId base,
                                              SnmpInstId inst,
                                              java.lang.Object val)

        createTableEntry

        Parameters:
        base - a SnmpObjId object.
        inst - a SnmpInstId object.
        val - a Object object.
        Returns:
        a T object.
      • getEntries

        public java.util.Collection<T> getEntries()

        getEntries

        Returns:
        a List object.
      • iterator

        public java.util.Iterator<T> iterator()

        iterator

        Specified by:
        iterator in interface java.util.Collection<T extends SnmpStore>
        Specified by:
        iterator in interface java.lang.Iterable<T extends SnmpStore>
        Returns:
        a Iterator object.
      • add

        public boolean add​(T e)
        Specified by:
        add in interface java.util.Collection<T extends SnmpStore>
      • addAll

        public boolean addAll​(java.util.Collection<? extends T> c)
        Specified by:
        addAll in interface java.util.Collection<T extends SnmpStore>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<T extends SnmpStore>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<T extends SnmpStore>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<T extends SnmpStore>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<T extends SnmpStore>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<T extends SnmpStore>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<T extends SnmpStore>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<T extends SnmpStore>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T extends SnmpStore>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<T extends SnmpStore>
      • toArray

        public <S> S[] toArray​(S[] a)
        Specified by:
        toArray in interface java.util.Collection<T extends SnmpStore>