diff options
Diffstat (limited to 'src/library/scala/Byte.scala')
-rw-r--r-- | src/library/scala/Byte.scala | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/src/library/scala/Byte.scala b/src/library/scala/Byte.scala new file mode 100644 index 0000000000..e3f4a82003 --- /dev/null +++ b/src/library/scala/Byte.scala @@ -0,0 +1,154 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2011, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// generated on Sun Jan 23 21:13:38 PST 2011 + +package scala + +import java.{ lang => jl } + + +final class Byte extends AnyVal { + def toByte: Byte = sys.error("stub") + def toShort: Short = sys.error("stub") + def toChar: Char = sys.error("stub") + def toInt: Int = sys.error("stub") + def toLong: Long = sys.error("stub") + def toFloat: Float = sys.error("stub") + def toDouble: Double = sys.error("stub") + + def unary_+ : Int = sys.error("stub") + def unary_- : Int = sys.error("stub") + def unary_~ : Int = sys.error("stub") + + def +(x: String): String = sys.error("stub") + + def <<(x: Int): Int = sys.error("stub") + def <<(x: Long): Int = sys.error("stub") + def >>>(x: Int): Int = sys.error("stub") + def >>>(x: Long): Int = sys.error("stub") + def >>(x: Int): Int = sys.error("stub") + def >>(x: Long): Int = sys.error("stub") + + def ==(x: Byte): Boolean = sys.error("stub") + def ==(x: Short): Boolean = sys.error("stub") + def ==(x: Char): Boolean = sys.error("stub") + def ==(x: Int): Boolean = sys.error("stub") + def ==(x: Long): Boolean = sys.error("stub") + def ==(x: Float): Boolean = sys.error("stub") + def ==(x: Double): Boolean = sys.error("stub") + + def !=(x: Byte): Boolean = sys.error("stub") + def !=(x: Short): Boolean = sys.error("stub") + def !=(x: Char): Boolean = sys.error("stub") + def !=(x: Int): Boolean = sys.error("stub") + def !=(x: Long): Boolean = sys.error("stub") + def !=(x: Float): Boolean = sys.error("stub") + def !=(x: Double): Boolean = sys.error("stub") + + def <(x: Byte): Boolean = sys.error("stub") + def <(x: Short): Boolean = sys.error("stub") + def <(x: Char): Boolean = sys.error("stub") + def <(x: Int): Boolean = sys.error("stub") + def <(x: Long): Boolean = sys.error("stub") + def <(x: Float): Boolean = sys.error("stub") + def <(x: Double): Boolean = sys.error("stub") + + def <=(x: Byte): Boolean = sys.error("stub") + def <=(x: Short): Boolean = sys.error("stub") + def <=(x: Char): Boolean = sys.error("stub") + def <=(x: Int): Boolean = sys.error("stub") + def <=(x: Long): Boolean = sys.error("stub") + def <=(x: Float): Boolean = sys.error("stub") + def <=(x: Double): Boolean = sys.error("stub") + + def >(x: Byte): Boolean = sys.error("stub") + def >(x: Short): Boolean = sys.error("stub") + def >(x: Char): Boolean = sys.error("stub") + def >(x: Int): Boolean = sys.error("stub") + def >(x: Long): Boolean = sys.error("stub") + def >(x: Float): Boolean = sys.error("stub") + def >(x: Double): Boolean = sys.error("stub") + + def >=(x: Byte): Boolean = sys.error("stub") + def >=(x: Short): Boolean = sys.error("stub") + def >=(x: Char): Boolean = sys.error("stub") + def >=(x: Int): Boolean = sys.error("stub") + def >=(x: Long): Boolean = sys.error("stub") + def >=(x: Float): Boolean = sys.error("stub") + def >=(x: Double): Boolean = sys.error("stub") + + def |(x: Byte): Int = sys.error("stub") + def |(x: Short): Int = sys.error("stub") + def |(x: Char): Int = sys.error("stub") + def |(x: Int): Int = sys.error("stub") + def |(x: Long): Long = sys.error("stub") + + def &(x: Byte): Int = sys.error("stub") + def &(x: Short): Int = sys.error("stub") + def &(x: Char): Int = sys.error("stub") + def &(x: Int): Int = sys.error("stub") + def &(x: Long): Long = sys.error("stub") + + def ^(x: Byte): Int = sys.error("stub") + def ^(x: Short): Int = sys.error("stub") + def ^(x: Char): Int = sys.error("stub") + def ^(x: Int): Int = sys.error("stub") + def ^(x: Long): Long = sys.error("stub") + + def +(x: Byte): Int = sys.error("stub") + def +(x: Short): Int = sys.error("stub") + def +(x: Char): Int = sys.error("stub") + def +(x: Int): Int = sys.error("stub") + def +(x: Long): Long = sys.error("stub") + def +(x: Float): Float = sys.error("stub") + def +(x: Double): Double = sys.error("stub") + + def -(x: Byte): Int = sys.error("stub") + def -(x: Short): Int = sys.error("stub") + def -(x: Char): Int = sys.error("stub") + def -(x: Int): Int = sys.error("stub") + def -(x: Long): Long = sys.error("stub") + def -(x: Float): Float = sys.error("stub") + def -(x: Double): Double = sys.error("stub") + + def *(x: Byte): Int = sys.error("stub") + def *(x: Short): Int = sys.error("stub") + def *(x: Char): Int = sys.error("stub") + def *(x: Int): Int = sys.error("stub") + def *(x: Long): Long = sys.error("stub") + def *(x: Float): Float = sys.error("stub") + def *(x: Double): Double = sys.error("stub") + + def /(x: Byte): Int = sys.error("stub") + def /(x: Short): Int = sys.error("stub") + def /(x: Char): Int = sys.error("stub") + def /(x: Int): Int = sys.error("stub") + def /(x: Long): Long = sys.error("stub") + def /(x: Float): Float = sys.error("stub") + def /(x: Double): Double = sys.error("stub") + + def %(x: Byte): Int = sys.error("stub") + def %(x: Short): Int = sys.error("stub") + def %(x: Char): Int = sys.error("stub") + def %(x: Int): Int = sys.error("stub") + def %(x: Long): Long = sys.error("stub") + def %(x: Float): Float = sys.error("stub") + def %(x: Double): Double = sys.error("stub") + +} + + +object Byte extends AnyValCompanion { + final val MinValue = jl.Byte.MIN_VALUE + final val MaxValue = jl.Byte.MAX_VALUE + + def box(x: Byte): jl.Byte = jl.Byte.valueOf(x) + def unbox(x: jl.Object): Byte = x.asInstanceOf[jl.Byte].byteValue() + override def toString = "object scala.Byte" +} |