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
import android.support.v7.widget.RecyclerView | |
import android.view.ViewGroup | |
/** | |
* Created by Terence Baker on 08/02/2018. | |
*/ | |
abstract class HeaderItemAdapter<H : RecyclerView.ViewHolder, I : RecyclerView.ViewHolder, T>(items: Array<T>, itemClickListener: OnRecyclerItemClickListener<T>? = null) : ItemAdapter<I, T>(items, itemClickListener) { | |
companion object { |
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
import com.google.gson.* | |
import java.math.BigDecimal | |
import java.math.BigInteger | |
/** | |
* Created by Terence Baker on 13/02/2018. | |
*/ | |
val JsonElement.optString: String? | |
get() = safeConversion { asString } |