Interface Counter

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.Augmentable<Counter>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.ChildOf<DataChangeCounter>, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject, org.opendaylight.yangtools.yang.binding.Identifiable<CounterKey>

    public interface Counter
    extends org.opendaylight.yangtools.yang.binding.ChildOf<DataChangeCounter>, org.opendaylight.yangtools.yang.binding.Augmentable<Counter>, org.opendaylight.yangtools.yang.binding.Identifiable<CounterKey>

    This class represents the following YANG schema fragment defined in module data-change-counter

     list counter {
       leaf id {
         type string;
       }
       key id;
       leaf count {
         type uint32;
       }
     }
     
    The schema path to identify an instance is data-change-counter/data-change-counter/counter

    To create instances of this class use CounterBuilder.

    See Also:
    CounterBuilder, CounterKey
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        default Class<Counter> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getId

        @Nullable String getId()
        Returns:
        java.lang.String id, or null if not present
      • getCount

        @Nullable org.opendaylight.yangtools.yang.common.Uint32 getCount()
        The number of data changes.
        Returns:
        org.opendaylight.yangtools.yang.common.Uint32 count, or null if not present
      • key

        CounterKey key()
        Specified by:
        key in interface org.opendaylight.yangtools.yang.binding.Identifiable<CounterKey>