This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// comparing to kotlin version: https://proandroiddev.com/extension-classes-f9dcf5878b71 | |
sealed trait Feature | |
object SomeFeature extends Feature | |
trait AppFeatures { | |
def isEnabled(feature: Feature): Boolean | |
} | |
extension (appFeatures: AppFeatures) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package teikametrics | |
import scala.collection.SortedMap | |
/** | |
* Immutable implementation of an LRU cache. | |
* | |
* @author Twitter | |
* | |
* Copy pasted from the version previously in twitter-util v19.1.0 at |
OlderNewer