com.backendless.hive.ValueBound Maven / Gradle / Ivy
package com.backendless.hive;
public enum ValueBound
{
Include, Exclude, Infinity;
public static ValueBound valueOfIgnoreCase( String name )
{
if( name == null )
throw new NullPointerException( "Argument \"name\" is null" );
String lowCaseName = name.toLowerCase();
for( ValueBound valueBound : ValueBound.values() )
{
if( valueBound.name().toLowerCase().equals( lowCaseName ) )
return valueBound;
}
throw new IllegalArgumentException( "No enum constant \"" + ValueBound.class.getName() + "\" for name \"" + name + "\"" );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy