Skip to content

Commit

Permalink
Update NNJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
shinovon committed Jul 26, 2024
1 parent 0efa2dc commit 6a625da
Show file tree
Hide file tree
Showing 6 changed files with 632 additions and 336 deletions.
10 changes: 9 additions & 1 deletion src/cc/nnproject/json/AbstractJSON.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2022 Arman Jussupgaliyev
Copyright (c) 2022-2024 Arman Jussupgaliyev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,14 +23,22 @@ of this software and associated documentation files (the "Software"), to deal

public abstract class AbstractJSON {

// common methods for both JSONObject and JSONArray

public abstract void clear();

public abstract int size();

public abstract String toString();

public abstract String build();

public final String format() {
return format(0);
}

protected abstract String format(int l);

public abstract boolean similar(Object obj);

}
Loading

0 comments on commit 6a625da

Please sign in to comment.