org.gerweck.scala.util.prefs.PrefHandler.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gerweck-utils-java6_2.11 Show documentation
Show all versions of gerweck-utils-java6_2.11 Show documentation
General utilies for Scala applications
package org.gerweck.scala.util.prefs
import java.util.prefs.Preferences
trait PrefHandler[A] {
def read(path: String, default: A)(implicit p: Preferences): A
def write(path: String, a: A)(implicit p: Preferences): Unit
}
/* PlatformPrefHandlers are defined in the java-version-specific folders */
object PrefHandler extends CommonPrefHandlers with PlatformPrefHandlers