Originator: Setting state to State4 Originator: State after restoring from Memento: State3 This example uses a String as the state, which is an immutable object in Java.
Originator: Setting state to State4 Originator: State after restoring from Memento: State3 In diesem Beispiel wird ein String als Zustand verwendet, der in Java standardmäßig unveränderbar ist.