Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-296

Consider defining Angle as a subclass of java.lang.Number

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.6, 0.7
    • 0.8
    • Utilities
    • None

    Description

      org.apache.sis.measure.Angle was intentionally defined as not extending java.lang.Number. In a previous library this was causing confusion. But a few tests suggest that this is not causing confusion anymore with Apache SIS design. Considering Angle as a kind of Number may help to reduce the amount of instanceof checks in code that are only interested in the numerical value.

      Attachments

        1. Angle.patch
          4 kB
          Martin Desruisseaux

        Issue Links

          Activity

            People

              desruisseaux Martin Desruisseaux
              desruisseaux Martin Desruisseaux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: