Skip to content

Commit

Permalink
Merge pull request #48 from codenotary/chore_javadoc
Browse files Browse the repository at this point in the history
javadoc comments
  • Loading branch information
jeroiraz committed Dec 1, 2022
2 parents d84aa6e + 2510747 commit b75f88d
Show file tree
Hide file tree
Showing 17 changed files with 490 additions and 251 deletions.
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;
}
}

0 comments on commit b75f88d

Please sign in to comment.