Back to project page PasswordDroid.
The source code is released under:
GNU General Public License
If you think the Android project PasswordDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.wuthoehle.passworddroid.service.model.entries; // w w w.j a va2s. c o m /* Copyright (c) 2015 Marco Huenseler <marcoh.huenseler+git@gmail.com> * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ public class Countable implements EntryElement { private Entry parent; private int counter; public Countable(Entry parent, int start) { this.parent = parent; this.counter = start; this.parent.setPassword_known(false); } public int getCounter() { return this.counter; } public void setCounter(int counter) { this.counter = counter; this.parent.setPassword_known(false); } @Override public void accept(EntryVisitor visitor) { visitor.visit(this); } }