/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/src/com/mapswithme/maps/search/HiddenCommand.java
36 строк
695 B
Александр Зацепин
[android] Migrated code to Android X
22 окт 2019, 15:11
22 окт 2019, 15:11
f2dd324
Код
Авторство
О чём код?
package com.mapswithme.maps.search; import androidx.annotation.NonNull; interface HiddenCommand { /** * Executes the specified command. * * @return true if the command has been executed, otherwise - false. */ boolean execute(@NonNull String command); abstract class BaseHiddenCommand implements HiddenCommand { @NonNull private final String mCommand; BaseHiddenCommand(@NonNull String command) { mCommand = command; } @Override public boolean execute(@NonNull String command) { if (!mCommand.equals(command)) return false; executeInternal(); return true; } abstract void executeInternal(); } }