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
let optionalNumber = Int("365") | |
// The optionalNumber is an optional Int | |
let unwrappedNumber = optionalNumber! | |
// The unwrappedNumber is Int and has a value of 365 | |
let optionalFirstName = ["firstName": "Jeet", "lastName": "Smith"]["firstName"] | |
// The optionalNumber is an optional String | |
let unwrappedFirstName = optionalFirstName! | |
// The unwrappedNumber is String and has a value of "Jeet" |
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
var lastName: String? | |
var age: Int? = nil | |
var height: Int? = Optional.none | |
var name: String? = Optional.some("Jeet") | |
var middleName: String? = ["firstName": "Jeet", "lastName": "Smith"]["middleName"] |
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
public class RxImageView extends ImageView { | |
// region Member Variables | |
private PublishSubject<Boolean> publishSubject = PublishSubject.create(); | |
// endregion | |
// region Constructors | |
public RxImageView(Context context) { | |
super(context); | |
} |
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 jp.wasabeef.sample; | |
import android.content.Context; | |
import android.graphics.SurfaceTexture; | |
import android.opengl.GLDebugHelper; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.TextureView; | |
import android.view.View; | |
import java.io.Writer; |