Skip to content

Commit

Permalink
sealed traits Vector and Matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
brkyvz committed Sep 18, 2014
1 parent d3a8a16 commit 7af2f83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import org.apache.spark.util.random.XORShiftRandom
/**
* Trait for a local matrix.
*/
trait Matrix extends Serializable {
sealed trait Matrix extends Serializable {

/** Number of rows. */
def numRows: Int
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import org.apache.spark.SparkException
*
* Note: Users should not implement this interface.
*/
trait Vector extends Serializable {
sealed trait Vector extends Serializable {

/**
* Size of the vector.
Expand Down

0 comments on commit 7af2f83

Please sign in to comment.