object Util
- Alphabetic
- By Inheritance
- Util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
alloc[A](src: Array[A], offset: Int, len: Int)(implicit arg0: ClassTag[A]): Array[A]
Given a src array, an offset, and a len, return a new array which copies the relevant area of src.
Given a src array, an offset, and a len, return a new array which copies the relevant area of src.
This method does not do any size or bounds checking.
-
macro
def
array[A](as: A*): Array[A]
Efficient alternative to Array.apply.
Efficient alternative to Array.apply.
"As seen on scala-internals!"
NOTE: As of Scala 2.12 this seems unnecessary: Array(...) now uses a similar technique to produce efficient code.
-
def
arrayMacro[A](c: Context)(as: scala.reflect.macros.blackbox.Context.Expr[A]*)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[A]): scala.reflect.macros.blackbox.Context.Expr[Array[A]]
Takes in something like: ArrayUtil.alloc[Int](11, 22, 33, 44)(ct)
Takes in something like: ArrayUtil.alloc[Int](11, 22, 33, 44)(ct)
and builds a tree like: { val arr:Array[Int] = ct.newArray(4) arr.update(0, 11) arr.update(1, 22) arr.update(2, 33) arr.update(3, 44) arr }
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bufferMacro[A](c: Context)(as: scala.reflect.macros.blackbox.Context.Expr[A]*)(implicit arg0: scala.reflect.macros.blackbox.Context.WeakTypeTag[A]): scala.reflect.macros.blackbox.Context.Expr[Buffer[A]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @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
- 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
nextPowerOfTwo(n: Int): Int
Given a number n, this method returns n if n is a power-of-two.
Given a number n, this method returns n if n is a power-of-two.
Otherwise, it returns the smallest power-of-two larger than n.
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )