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 Ez a példa egy Stringet használ állapotként, amelyik egy megváltoztathatatlan objektum Java-ban.