object PureFunction
Function types for SwayDB.
Your registered functions (MapIO.registerFunction) should implement one of the these functions that informs SwayDB of target data for the on the applied key should be read to execute the function.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PureFunction
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait Enabled[K, V, R <: Return[V]] extends PureFunction[K, V, R]
- trait OnKey[K, V, R <: Return[V]] extends Enabled[K, V, R]
- Annotations
- @FunctionalInterface()
- trait OnKeyValue[K, V, R <: Return[V]] extends Enabled[K, V, R]
- Annotations
- @FunctionalInterface()
- trait OnValue[K, V, R <: Return[V]] extends Enabled[K, V, R]
- Annotations
- @FunctionalInterface()
- abstract final class VoidM[K, V] extends PureFunction[K, V, Return.Map[V]]
Type used to indicate disabled functions for swaydb.java.MapIO
- abstract final class VoidS[K] extends OnKey[K, Void, Return.Set[Void]]
Type used to indicate disabled functions for swaydb.java.SetIO
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asScala[K, R <: Return.Set[Void]](function: OnKey[K, Void, R]): PureFunction.OnKey[K, Nothing, Apply.Set[Nothing]]
- def asScala[K, V, R <: Return.Map[V]](function: PureFunction[K, V, R]): swaydb.PureFunction[K, V, Apply.Map[V]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()