This is a cakewalk question: how to properly declare the T Type parameter in this object method Xforms.rotate? Note it would not be my intention to provide type parameters to the object itself..
object Xforms {
def rotate(data : Traversable[T]) = { }
}
For clarification I would be looking for a more or less equivalent of
public static <T> T rotate(T data) {
T newData = null;
// perform rotations on newData ..
return newData;
}