public class AccountListParser {
- private final MappingIterator<ParsedLedgerAccount> iter;
+ private final MappingIterator<ParsedLedgerAccount> iterator;
public AccountListParser(InputStream input) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ObjectReader reader = mapper.readerFor(ParsedLedgerAccount.class);
- iter = reader.readValues(input);
+ iterator = reader.readValues(input);
}
public ParsedLedgerAccount nextAccount() {
- if (!iter.hasNext()) return null;
+ if (!iterator.hasNext()) return null;
- ParsedLedgerAccount next = iter.next();
+ ParsedLedgerAccount next = iterator.next();
if (next.getAname().equalsIgnoreCase("root")) return nextAccount();
public class TransactionListParser {
- private final MappingIterator<ParsedLedgerTransaction> iter;
+ private final MappingIterator<ParsedLedgerTransaction> iterator;
public TransactionListParser(InputStream input) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ObjectReader reader = mapper.readerFor(ParsedLedgerTransaction.class);
- iter = reader.readValues(input);
+ iterator = reader.readValues(input);
}
public ParsedLedgerTransaction nextTransaction() {
- return iter.hasNext() ? iter.next() : null;
+ return iterator.hasNext() ? iterator.next() : null;
}
}
public class AccountListParser {
- private final MappingIterator<ParsedLedgerAccount> iter;
+ private final MappingIterator<ParsedLedgerAccount> iterator;
public AccountListParser(InputStream input) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ObjectReader reader = mapper.readerFor(ParsedLedgerAccount.class);
- iter = reader.readValues(input);
+ iterator = reader.readValues(input);
}
public ParsedLedgerAccount nextAccount() {
- if (!iter.hasNext()) return null;
+ if (!iterator.hasNext()) return null;
- ParsedLedgerAccount next = iter.next();
+ ParsedLedgerAccount next = iterator.next();
if (next.getAname().equalsIgnoreCase("root")) return nextAccount();
public class TransactionListParser {
- private final MappingIterator<ParsedLedgerTransaction> iter;
+ private final MappingIterator<ParsedLedgerTransaction> iterator;
public TransactionListParser(InputStream input) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ObjectReader reader = mapper.readerFor(ParsedLedgerTransaction.class);
- iter = reader.readValues(input);
+ iterator = reader.readValues(input);
}
public ParsedLedgerTransaction nextTransaction() {
- return iter.hasNext() ? iter.next() : null;
+ return iterator.hasNext() ? iterator.next() : null;
}
}
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ Copyright © 2019 Damyan Ivanov.
- ~ This file is part of MoLe.
- ~ MoLe is free software: you can distribute it and/or modify it
- ~ under the term of the GNU General Public License as published by
- ~ the Free Software Foundation, either version 3 of the License, or
- ~ (at your opinion), any later version.
- ~
- ~ MoLe is distributed in the hope that it will be useful,
- ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ~ GNU General Public License terms for details.
- ~
- ~ You should have received a copy of the GNU General Public License
- ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
- -->
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- android:baselineAligned="false"
- android:divider="?android:attr/dividerHorizontal"
- android:orientation="horizontal"
- android:showDividers="middle"
- tools:context=".ui.activity.ProfileListActivity">
-
- <!--
- This layout is a two-pane layout for the Profiles
- master/detail flow.
-
- -->
-
- <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/profile_list"
- android:name="net.ktnx.mobileledger.ui.activity.ProfileListFragment"
- android:layout_width="@dimen/item_width"
- android:layout_height="match_parent"
- android:layout_marginLeft="16dp"
- android:layout_marginRight="16dp"
- app:layoutManager="LinearLayoutManager"
- tools:context="net.ktnx.mobileledger.ui.activity.ProfileListActivity"
- tools:listitem="@layout/profile_list_content" />
-
- <FrameLayout
- android:id="@+id/profile_detail_container"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="3" />
-
-</LinearLayout>
\ No newline at end of file