All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>, org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
All Known Subinterfaces:
FlowAndStatisticsMap, FlowAndStatisticsMapList, FlowCapableNodeConnectorQueueStatistics, FlowCapableNodeConnectorStatistics, FlowStatistics, GenericQueueStatistics, GenericStatistics, GetNodeConnectorStatisticsOutput, NodeConnectorStatistics, NodeConnectorStatisticsAndPortNumberMap, QueueIdAndStatisticsMap

@Generated("mdsal-binding-generator") public interface Duration extends org.opendaylight.yangtools.yang.binding.DataObject
Duration, contains seconds and nanoseconds.

This class represents the following YANG schema fragment defined in module opendaylight-statistics-types

 grouping duration {
   container duration {
     leaf second {
       type yang:counter32;
     }
     leaf nanosecond {
       type yang:counter32;
     }
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return duration, or null if it is not present.
    Class<? extends Duration>
     
    @NonNull Duration
    Return duration, or an empty instance if it is not present.
  • Field Details

    • QNAME

      static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
      YANG identifier of the statement represented by this class.
  • Method Details

    • implementedInterface

      Class<? extends Duration> implementedInterface()
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
      Specified by:
      implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
    • getDuration

      Duration getDuration()
      Return duration, or null if it is not present.
      Returns:
      org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.duration.Duration duration, or null if it is not present.
    • nonnullDuration

      @NonNull Duration nonnullDuration()
      Return duration, or an empty instance if it is not present.
      Returns:
      org.opendaylight.yang.gen.v1.urn.opendaylight.model.statistics.types.rev130925.duration.Duration duration, or an empty instance if it is not present.