Simple history stack for Java, to manage undo/redo operations in a desktop application.