mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-01 08:48:46 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
12 lines
337 B
Scala
12 lines
337 B
Scala
package com.twitter.visibility.features
|
|
|
|
import com.twitter.visibility.util.NamingUtils
|
|
|
|
abstract class Feature[T] protected ()(implicit val manifest: Manifest[T]) {
|
|
|
|
lazy val name: String = NamingUtils.getFriendlyName(this)
|
|
|
|
override lazy val toString: String =
|
|
"Feature[%s](name=%s)".format(manifest, getClass.getSimpleName)
|
|
}
|