Class CheckpointIdentity


  • public final class CheckpointIdentity
    extends Object
    Provisional way to identify checkpoint within a generation plan without resorting to String. FIXME Once I've got a better idea what I can use to identify CP, this class likely shall become an interface with hashCode/equals, persistence and presentation contract, like PlanIdentity. Or a final class if there's only 1 way to identify CP. It seems there's no difference in Checkpoint vs CheckpointIdentity (both are presentation and persistence strings). However, I keep them separate for few reasons: (a) there's PlanIdentity as I can't persist ModelGenerationPlan, so would be strange to identify CP with (PlanIdentity,Checkpoint) (b) I might want to expose MGP from Checkpoint (parent/child hierarchy), which would not be possible for persistent cp identity
    Since:
    3.4
    • Method Detail

      • getPersistenceValue

        @NotNull
        public String getPersistenceValue()
        Not sure I need this one as part of identity interface. Perhaps, identity string could be specified explicitly in a GP model (with default == toPersistentValue(name)).
        Returns:
        value one can safely write e.g. in a file system.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object