trait RefCompanion extends AnyRef
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RefCompanion
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
-
abstract
def
factory: RefFactory
- Attributes
- protected
Concrete 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
- def apply(initialValue: Unit): Ref[Unit]
- def apply(initialValue: Double): Ref[Double]
- def apply(initialValue: Float): Ref[Float]
- def apply(initialValue: Long): Ref[Long]
- def apply(initialValue: Int): Ref[Int]
- def apply(initialValue: Char): Ref[Char]
- def apply(initialValue: Short): Ref[Short]
- def apply(initialValue: Byte): Ref[Byte]
- def apply(initialValue: Boolean): Ref[Boolean]
-
def
apply[A](initialValue: A)(implicit om: OptManifest[A]): Ref[A]
Returns a
Ref
instance that manages a newly allocated memory location, initializing it to holdinitialValue
.Returns a
Ref
instance that manages a newly allocated memory location, initializing it to holdinitialValue
. The returnedRef
is not part of any transaction's read or write set.Example:
val x = Ref("initial") // creates a Ref[String] val list1 = Ref(Nil : List[String]) // creates a Ref[List[String]] val list2 = Ref[List[String]](Nil) // creates a Ref[List[String]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
make[A]()(implicit om: OptManifest[A]): Ref[A]
Returns a
Ref
instance that manages a newly allocated memory location holding values of typeA
.Returns a
Ref
instance that manages a newly allocated memory location holding values of typeA
. If you have an initial valuev0
available,Ref(v0)
should be preferred. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )