|
|
@ -30,7 +30,7 @@ data class SearchBook( |
|
|
|
var variable: String? = null, |
|
|
|
var variable: String? = null, |
|
|
|
var bookInfoHtml: String? = null, |
|
|
|
var bookInfoHtml: String? = null, |
|
|
|
var originOrder: Int = 0 |
|
|
|
var originOrder: Int = 0 |
|
|
|
) : Parcelable, BaseBook { |
|
|
|
) : Parcelable, BaseBook, Comparable<SearchBook> { |
|
|
|
|
|
|
|
|
|
|
|
override fun equals(other: Any?): Boolean { |
|
|
|
override fun equals(other: Any?): Boolean { |
|
|
|
if (other is SearchBook) { |
|
|
|
if (other is SearchBook) { |
|
|
@ -45,6 +45,10 @@ data class SearchBook( |
|
|
|
return bookUrl.hashCode() |
|
|
|
return bookUrl.hashCode() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun compareTo(other: SearchBook): Int { |
|
|
|
|
|
|
|
return other.originOrder - this.originOrder |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@IgnoredOnParcel |
|
|
|
@IgnoredOnParcel |
|
|
|
@Ignore |
|
|
|
@Ignore |
|
|
|
override var variableMap: HashMap<String, String>? = null |
|
|
|
override var variableMap: HashMap<String, String>? = null |
|
|
|