This file contains 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 'package:equatable/equatable.dart'; | |
import 'package:get/get_rx/get_rx.dart'; | |
/// GetRxDecorator for Rx<T> variables in Get library [https://pub.dev/packages/get] | |
/// This wrapper lets to apply UDF concept and makes it easier | |
/// to work with Getx' Rx<T> and Obx. | |
/// | |
/// ============================================================================ | |
/// | |
/// Why one need to use this decorator? Because of problem with Rx<T> variables: |
This file contains 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 'package:flutter/widgets.dart'; | |
import 'package:get/get.dart'; | |
/// [StatexWidget] helps to manage [GetxController]s lifecycle | |
/// according its [Widget]s in cases when [Getx] doesn't. | |
/// | |
/// Examples: | |
/// 1. PageView.childs[Widget1(), Widget2(), ...] | |
/// 2. Get.bottomSheet(Widget()) | |
/// |
This file contains 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 'package:flutter/widgets.dart'; | |
import 'package:get/get.dart'; | |
import 'package:rxdart/rxdart.dart' as rx; | |
/// Автоинжектор для связки времени жизни одного контроллера с одним виджетом | |
/// | |
/// Является заменителем `...binding: BindingsBuilder.put(() => T())` | |
/// или `Get.put(()=>T())` | |
/// в случаях, когда требуется автоматически привязать время жизни контроллера | |
/// к имплементациям виджетов, не участвующих в GetPageRoutes |
This file contains 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.gdetotut.sample.smartprop | |
import io.reactivex.disposables.CompositeDisposable | |
import io.reactivex.subjects.PublishSubject | |
import javafx.beans.binding.BooleanBinding | |
import javafx.beans.property.Property | |
import tornadofx.* | |
/** | |
* `Smart`-conception extends [ViewModel] with handy properties like |
This file contains 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 io.reactivex.Completable; | |
import io.reactivex.disposables.Disposable; | |
import io.reactivex.functions.Action; | |
import io.reactivex.observers.DisposableCompletableObserver; | |
import io.reactivex.observers.TestObserver; | |
import org.junit.Test; | |
import java.util.Observable; | |
public class RxFromAction { |
This file contains 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 io.reactivex.Observable; | |
import io.reactivex.disposables.Disposable; | |
import io.reactivex.functions.Consumer; | |
import io.reactivex.observers.DisposableObserver; | |
import io.reactivex.schedulers.Schedulers; | |
/** | |
* Замена вызовов лапши из колбеков на RxJava. | |
* <p>Задача - последовательное выполнение процессов. |
This file contains 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.gdetotut.login | |
import com.nhaarman.mockito_kotlin.argumentCaptor | |
import com.nhaarman.mockito_kotlin.eq | |
import org.junit.Test | |
import org.junit.runner.RunWith | |
import org.junit.runners.Parameterized | |
import java.util.Arrays |
This file contains 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.gdetotut.login; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import org.mockito.ArgumentCaptor; | |
import java.util.Arrays; | |
import java.util.Collection; |
This file contains 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 vfx.kotlin | |
import com.nhaarman.mockito_kotlin.argumentCaptor | |
import com.nhaarman.mockito_kotlin.mock | |
import com.nhaarman.mockito_kotlin.verify | |
import org.junit.Assert | |
import org.junit.Test | |
data class Pizza(val name: String) |
This file contains 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 org.junit.Test; | |
import org.mockito.ArgumentCaptor; | |
import static org.junit.Assert.assertEquals; | |
import static org.mockito.Mockito.mock; | |
import static org.mockito.Mockito.verify; | |
class PizzaJava { | |
private final String name; |
NewerOlder