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

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.6, 0.7
    • Fix Version/s: 0.8
    • Component/s: Utilities
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: