[ http://javanese.online/%D1%81%D1%82%D0%B0%D1%82%D1%8C%D0%B8/hype-driven_android-development/ ]
Tag: java
Java Android faq interview algorithms collections
Collections in java. don’t forget
Руководство по версиям и возможностям Java
[https://habr.com/ru/post/488144/]
Руководство по возможностям Java версий 8-16
[https://habr.com/ru/post/551590/]
https://acecodinginterview.org/
https://habrahabr.ru/post/162017/
https://habrahabr.ru/post/237043/
Continue reading Java Android faq interview algorithms collections
Interop guide Java + Kotlin
A set of rules for authoring public APIs in Java and Kotlin with the intent that the code will feel idiomatic when consumed from the other language.
Rx – observable interval test, TestScheduler
Loading data from few sources by rxjava
[code language=”java”]
Observable<Data> memory = …;
Observable<Data> disk = …;
Observable<Data> network = …;
// Retrieve the first source with data
Observable<Data> source = Observable
.concat(memory, disk, network)
.first();
[/code]
Save data to cache
[code language=”java”]
Observable<Data> networkWithSave = network.doOnNext(data -> {
saveToDisk(data);
cacheInMemory(data);
});
Observable<Data> diskWithCache = disk.doOnNext(data -> {
cacheInMemory(data);
});
[/code]
Update data
[code language=”java”]
Observable<Data> source = Observable
.concat(memory, diskWithCache, networkWithSave)
.first(data -> data.isUpToDate());
[/code]