Skip to content

Implement an "exportable parameters" interface #391

@pont-us

Description

@pont-us

At present a lot of parameters classes (e.g. FisherValues, GreatCircles) have, effectively, an undeclared interface with standard methods toStrings, getHeaders, and getEmptyFields. I should define an official interface for these, especially now that we're allowed static methods in interfaces. Might be able to implement getEmptyFields as a default method calling through to getHeaders too? Or actually probably not since it's static.

The thing that makes this fiddly is that we need getEmptyFields as a static method previsely so that we can call it when we have a null value for the desired object. Perhaps a null object pattern would make sense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions