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

com.ecfeed.core.parser.DuplicatesParser Maven / Gradle / Ivy

Go to download

An open library used to connect to the ecFeed service. It can be also used as a standalone testing tool. It is integrated with Junit5 and generates a stream of test cases using a selected algorithm (e.g. Cartesian, N-Wise). There are no limitations associated with the off-line version but the user cannot access the on-line computation servers and the model database.

The newest version!
package com.ecfeed.core.parser;

import com.ecfeed.core.utils.ExceptionHelper;

public class DuplicatesParser {

    private final static String duplicatesTrue = "true";
    private final static String duplicatesFalse = "false";

    private boolean fDuplicates = false;

    public DuplicatesParser(String duplicatesStr) {

        if (duplicatesStr == null) {
            fDuplicates = false;
            return;
        }

        if (duplicatesStr.equals(duplicatesTrue)) {
            fDuplicates = true;
            return;
        }

        if (duplicatesStr.equals(duplicatesFalse)) {
            fDuplicates = false;
            return;
        }

        ExceptionHelper.reportRuntimeException("Invalid value for duplicates tag: " + duplicatesStr + ".");
    }

    public boolean isDuplicates() {

        return fDuplicates;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy