Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-621

yang-model-api: introduce interfaces for specific integer types

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • Resolution: Done
    • None
    • 2.0.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 6033

    Description

      Some users have a need to check for specific subclass of an IntegerTypeDefinition, e.g. int8, int16.

      This is currently implemented by walking up the type tree to see what the root type is – which is inefficient, considering this could reasonably be achieved via an instanceof check.

      Introduce Int8TypeDefinition and friends and implement them in yang-model-util. For Restricted and Derived types this requires appropriate subclasses and instanceof dispatch when we build the type.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: