{"id":"memento-captures-state-preserving-encapsulation","text":"The Memento pattern captures and externalizes an object's internal state without violating encapsulation, so the object can be restored to that state later — the key differentiator from simply exposing state via getters.","truth_value":"IN","source":"entries/2026/06/17/gof-oo-chunk-18.md","source_url":"","source_hash":"","justifications":[],"dependents":["command-memento-complete-temporal-infrastructure","command-memento-temporal-persistence","encapsulation-complementary-temporal-mechanisms","memento-layered-encapsulation-architecture"],"metadata":{"last_premise_reviewed":"2026-06-17T18:19:22","premise_review_result":"pass"},"created_at":"2026-06-17T21:30:28+00:00","updated_at":"2026-06-17T21:30:28+00:00","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"memento-captures-state-preserving-encapsulation","truth_value":"IN","reason":"premise"}]}}