summaryrefslogtreecommitdiff
path: root/src/library/scala/runtime/VolatileByteRef.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/library/scala/runtime/VolatileByteRef.java')
-rwxr-xr-xsrc/library/scala/runtime/VolatileByteRef.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/library/scala/runtime/VolatileByteRef.java b/src/library/scala/runtime/VolatileByteRef.java
index 034b003017..d792b0a386 100755
--- a/src/library/scala/runtime/VolatileByteRef.java
+++ b/src/library/scala/runtime/VolatileByteRef.java
@@ -17,4 +17,7 @@ public class VolatileByteRef implements java.io.Serializable {
volatile public byte elem;
public VolatileByteRef(byte elem) { this.elem = elem; }
public String toString() { return java.lang.Byte.toString(elem); }
+
+ public static VolatileByteRef create(byte e) { return new VolatileByteRef(e); }
+ public static VolatileByteRef zero() { return new VolatileByteRef((byte)0); }
}