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

Update #135

Merged
merged 4 commits into from
Sep 5, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading