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

Exists method for check if Any object is empty #230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Exists method for check if Any object is empty #230

wants to merge 1 commit into from

Conversation

mmaryo
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()) {
                
            }

@codecov-io
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants