Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exists method for check if Any object is empty #230

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

Open
mmaryo wants to merge 1 commit into json-iterator:master
base: master
Choose a base branch
Loading
from monbanquet:add-method-to-check-if-exists
Open

Exists method for check if Any object is empty #230

mmaryo wants to merge 1 commit into json-iterator:master from monbanquet:add-method-to-check-if-exists

Conversation

Copy link

@mmaryo mmaryo commented Mar 28, 2019

Add method to check if a field exists

Before :

 Any rowField = atFields.get(mappingField.getAirtableFieldName());
 boolean exists = true;
 try {rowField.mustBeValid();}catch(Exception e){exists = false;}
 if (exists) {
 
 }

Now :

 Any rowField = atFields.get(mappingField.getAirtableFieldName());
 if (rowField.exists()) {
 
 }

Copy link

Codecov Report

Merging #230 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@ Coverage Diff @@
## master #230 +/- ##
==========================================
- Coverage 68.46% 68.45% -0.01% 
==========================================
 Files 107 107 
 Lines 7335 7336 +1 
 Branches 1388 1389 +1 
==========================================
 Hits 5022 5022 
- Misses 1867 1868 +1 
 Partials 446 446
Impacted Files Coverage Δ
src/main/java/com/jsoniter/any/Any.java 59.13% <0%> (-0.52%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e48a7a1...9b9e94c. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /