mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
26 lines
463 B
Swift
26 lines
463 B
Swift
/**
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
* See LICENSE
|
|
*/
|
|
|
|
import Foundation
|
|
import RxSwift
|
|
|
|
class ScoredFileItem: Comparable {
|
|
let score: Int
|
|
unowned let url: NSURL
|
|
|
|
init(score: Int, url: NSURL) {
|
|
self.score = score
|
|
self.url = url
|
|
}
|
|
}
|
|
|
|
func == (left: ScoredFileItem, right: ScoredFileItem) -> Bool {
|
|
return left.score == right.score
|
|
}
|
|
|
|
func <(left: ScoredFileItem, right: ScoredFileItem) -> Bool {
|
|
return left.score < right.score
|
|
}
|