Package net.cscott.jutil
Interface Environment.Mark
- All Superinterfaces:
AutoCloseable
- Enclosing interface:
Environment<K,V>
A mark into an environment. Closing it undoes all changes to
its environment since the mark was taken.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Undoes all changes to this mark's environment since the mark was taken, asEnvironment.undoToMark(Mark)does.
-
Method Details
-
close
default void close()Undoes all changes to this mark's environment since the mark was taken, asEnvironment.undoToMark(Mark)does. The marks ofHashEnvironmentandPersistentEnvironmentimplement this; the default implementation, for marks which do not know their environment, throwsUnsupportedOperationException.- Specified by:
closein interfaceAutoCloseable- Since:
- 2.0
-