/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
android/src/com/mapswithme/maps/bookmarks/SectionPosition.java
35 строк
642 B
velichkomarija
[android] Moved SectionPosition to a separate class.
06 окт 2020, 16:24
06 окт 2020, 16:24
67086d6
Код
Авторство
О чём код?
package com.mapswithme.maps.bookmarks; public class SectionPosition { static final int INVALID_POSITION = -1; private final int mSectionIndex; private final int mItemIndex; SectionPosition(int sectionInd, int itemInd) { mSectionIndex = sectionInd; mItemIndex = itemInd; } int getSectionIndex() { return mSectionIndex; } int getItemIndex() { return mItemIndex; } boolean isTitlePosition() { return mSectionIndex != INVALID_POSITION && mItemIndex == INVALID_POSITION; } boolean isItemPosition() { return mSectionIndex != INVALID_POSITION && mItemIndex != INVALID_POSITION; } }