Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javadoc comments #48

Merged
merged 7 commits into from Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -13,10 +13,31 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
package io.codenotary.immudb4j.exceptions;
package io.codenotary.immudb4j;

public class CorruptedDataException extends Exception {
import io.codenotary.immudb.ImmudbProto;

private static final long serialVersionUID = 1L;
public class Database {

private String name;
private boolean loaded;

private Database() {}

public static Database valueOf(ImmudbProto.DatabaseWithSettings pdb) {
final Database db = new Database();

db.name = pdb.getName();
db.loaded = pdb.getLoaded();

return db;
}

public String getName() {
return name;
}

public boolean isLoaded() {
return loaded;
}
}