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

com.tngtech.jgiven.config.ConfigValue Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.tngtech.jgiven.config;

/**
 * Represents a configuration value 
 */
public enum ConfigValue {
    TRUE,
    FALSE,
    AUTO;

    public static ConfigValue fromString( String value ) {
        if( "false".equalsIgnoreCase( value ) ) {
            return FALSE;
        }

        if( "true".equalsIgnoreCase( value ) ) {
            return TRUE;
        }

        return AUTO;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy