public class ShortcutsLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
loadShortcuts(@NotNull Shortcuts shortcuts,
@NotNull java.lang.CharSequence hostname,
@NotNull java.lang.CharSequence character)
Load shortcut info from the backing file.
|
static void |
saveShortcuts(@NotNull java.nio.file.Path file,
@NotNull java.lang.Iterable<Shortcut> shortcuts)
Save all shortcut info to the backing file.
|
public static void loadShortcuts(@NotNull @NotNull Shortcuts shortcuts, @NotNull @NotNull java.lang.CharSequence hostname, @NotNull @NotNull java.lang.CharSequence character)
shortcuts
- the shortcuts instance to updatehostname
- the current hostnamecharacter
- the current character namepublic static void saveShortcuts(@NotNull @NotNull java.nio.file.Path file, @NotNull @NotNull java.lang.Iterable<Shortcut> shortcuts)
file
- the backing fileshortcuts
- the shortcuts instance to save