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
| interface ResettableLazy<out T> : Lazy<T> { | |
| fun reset() | |
| } | |
| private class ResettableSynchronizedLazyImpl<out T>(initializer: () -> T, lock: Any? = null) : ResettableLazy<T> { | |
| private val initializer: (() -> T)? = initializer |
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 com.example.blendmodes; | |
| import android.graphics.Bitmap; | |
| import android.util.Log; | |
| public class Blender { | |
| private static final String TAG = Blender.class.getSimpleName(); | |
| public static Bitmap performBlending(Bitmap source, Bitmap destination, int mode) { |