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.
Java Source Code
package de.wuthoehle.passworddroid.service.model.entries;
//www.java2s.com/* 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/. */import java.util.List;
import de.wuthoehle.passworddroid.service.model.Category;
publicclass DerivatorEntry extends Entry {
public DerivatorEntry(String name, String user, Category category,
int counter, byte charmask, String add_chars, int length,
String comment, List<String> salts) {
super(name, user, category);
this.getElements().add(new Countable(this, counter));
this.getElements().add(new Customizable(this, charmask, add_chars, length));
this.getElements().add(new Commentable(this, comment));
this.getElements().add(new Saltable(this, salts));
}
// Use only for copying! (as otherwise the list could be incomplete)
public DerivatorEntry(String name, String user, Category category, List<EntryElement> elements) {
super(name, user, category, elements);
}
@Override
public Object clone() throws CloneNotSupportedException {
returnnew DerivatorEntry(this.getName(), this.getUser(), this.getCategory(), this.getElements());
}
}