All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.qingcha.verifier.core.VerifyResult Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package com.qingcha.verifier.core;


import java.util.ArrayList;
import java.util.List;

/**
 * @author qiqiang
 */
public class VerifyResult {
    private final List verifyResponses = new ArrayList<>();

    public void addWarning(VerifyResponse verifyResponse) {
        this.verifyResponses.add(verifyResponse);
    }

    public void addAllWarning(List verifyResponses) {
        this.verifyResponses.addAll(verifyResponses);
    }

    public void addAllWarning(VerifyResult verifyResult) {
        this.verifyResponses.addAll(verifyResult.getVerifyResponses());
    }

    public List getVerifyResponses() {
        return verifyResponses;
    }

    public void clear() {
        this.verifyResponses.clear();
    }

    public boolean hasWarning() {
        return !verifyResponses.isEmpty();
    }

    @Override
    public String toString() {
        return "VerifyResult{" +
                "verifyResponses=" + verifyResponses +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy