Class ReadOnlyObjects.GHMetaPublic

  • All Implemented Interfaces:
    ReadOnlyObjects.GHMetaExample
    Enclosing class:
    ReadOnlyObjects

    public static class ReadOnlyObjects.GHMetaPublic
    extends Object
    implements ReadOnlyObjects.GHMetaExample
    This version uses public getters and setters and leaves it up to Jackson how it wants to fill them.

    Pro:

    • Easy to create
    • Not much code
    • Mininal annotations
    Con:
    • Exposes public setters for fields that should not be changed
    • Lists modifiable when they should not be changed
    • Jackson generally doesn't call the setters, it just sets the fields directly
    Author:
    Paulo Miguel Almeida
    See Also:
    GHMeta