made serializable
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@5056 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
e5d9e71931
commit
7e461c0c31
|
@ -12,6 +12,7 @@ package scala.runtime;
|
|||
|
||||
/** Arrays created by new Array[T](length) where T is a type variable
|
||||
*/
|
||||
[serializable]
|
||||
final class BoxedAnyArray(val length: Int) extends BoxedArray {
|
||||
|
||||
private var boxed = new Array[Object](length);
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
public final class BoxedBoolean {
|
||||
public final class BoxedBoolean
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
private final static BoxedBoolean TRUE = new BoxedBoolean(true);
|
||||
private final static BoxedBoolean FALSE = new BoxedBoolean(false);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedBooleanArray(val value: Array[Boolean]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public final class BoxedByte extends BoxedNumber {
|
||||
public final class BoxedByte extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
private static final int MinHashed = -128;
|
||||
private static final int MaxHashed = 127;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedByteArray(val value: Array[Byte]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public class BoxedChar extends BoxedNumber {
|
||||
public class BoxedChar extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
private static final int MinHashed = 0;
|
||||
private static final int MaxHashed = 255;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedCharArray(val value: Array[Char]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public class BoxedDouble extends BoxedNumber {
|
||||
public class BoxedDouble extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
public static BoxedDouble box(double value) {
|
||||
return new BoxedDouble(value);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedDoubleArray(val value: Array[Double]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public class BoxedFloat extends BoxedNumber {
|
||||
public class BoxedFloat extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
public static BoxedFloat box(float value) {
|
||||
return new BoxedFloat(value);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedFloatArray(val value: Array[Float]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public final class BoxedInt extends BoxedNumber {
|
||||
public final class BoxedInt extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
private static final int MinHashed = -128;
|
||||
private static final int MaxHashed = 1024;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedIntArray(val value: Array[Int]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public class BoxedLong extends BoxedNumber {
|
||||
public class BoxedLong extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
public static BoxedLong box(long value) {
|
||||
return new BoxedLong(value);
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedLongArray(val value: Array[Long]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public final class BoxedShort extends BoxedNumber {
|
||||
public final class BoxedShort extends BoxedNumber
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
private static final int MinHashed = -128;
|
||||
private static final int MaxHashed = 127;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
package scala.runtime;
|
||||
|
||||
[serializable]
|
||||
final class BoxedShortArray(val value: Array[Short]) extends BoxedArray {
|
||||
|
||||
def length: Int = value.length;
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
\* */
|
||||
package scala.runtime;
|
||||
|
||||
public final class BoxedUnit {
|
||||
public final class BoxedUnit
|
||||
implements java.io.Serializable
|
||||
{
|
||||
|
||||
public final static BoxedUnit UNIT = new BoxedUnit();
|
||||
|
||||
|
|
|
@ -17,6 +17,10 @@ class StringBuilder {
|
|||
str.append(x);
|
||||
this
|
||||
}
|
||||
def append(x: String): StringBuilder = {
|
||||
str.append(x);
|
||||
this
|
||||
}
|
||||
def length(): Int = str.length();
|
||||
override def toString() = str.toString();
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ case class HedgeNT(i:int) extends NonTerm with Ordered[HedgeNT] {
|
|||
}
|
||||
};
|
||||
|
||||
object EMPTYHEDGE extends HedgeNT( 0, true ) ;
|
||||
object ANYHEDGE extends HedgeNT( 1, true ) ;
|
||||
//case object EMPTYHEDGE extends HedgeNT( 0, true ) ;
|
||||
//case object ANYHEDGE extends HedgeNT( 1, true ) ;
|
||||
object ANYTREE extends TreeNT( 1 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue