Added Scalariform sbt plugin which formats code on each compile. Also checking in reformatted code

This commit is contained in:
Jonas Bonér 2011-05-18 17:25:30 +02:00
parent 5949673092
commit a7311c83e6
177 changed files with 4184 additions and 4245 deletions

View file

@ -3,7 +3,7 @@ package akka.japi
/**
* A Function interface. Used to create first-class-functions is Java (sort of).
*/
trait Function[T,R] {
trait Function[T, R] {
def apply(param: T): R
}
@ -14,16 +14,18 @@ trait Function2[T1, T2, R] {
def apply(arg1: T1, arg2: T2): R
}
/** A Procedure is like a Function, but it doesn't produce a return value
/**
* A Procedure is like a Function, but it doesn't produce a return value
*/
trait Procedure[T] {
def apply(param: T): Unit
}
/** A Procedure is like a Function, but it doesn't produce a return value
/**
* A Procedure is like a Function, but it doesn't produce a return value
*/
trait Procedure2[T1,T2] {
def apply(param: T1, param2:T2): Unit
trait Procedure2[T1, T2] {
def apply(param: T1, param2: T2): Unit
}
/**
@ -41,13 +43,13 @@ trait Effect {
}
/**
+ * A constructor/factory, takes no parameters but creates a new value of type T every call
+ */
* + * A constructor/factory, takes no parameters but creates a new value of type T every call
* +
*/
trait Creator[T] {
def create: T
}
/**
* This class represents optional values. Instances of <code>Option</code>
* are either instances of case class <code>Some</code> or it is case