com.backendless.hive.ScoreUpdateMode Maven / Gradle / Ivy
package com.backendless.hive;
public enum ScoreUpdateMode
{
/**
* Only update existing elements if the new score is greater than the current score. This flag doesn't prevent adding new elements.
*/
Greater,
/**
* Only update existing elements if the new score is less than the current score. This flag doesn't prevent adding new elements.
*/
Less;
public static ScoreUpdateMode valueOfIgnoreCase( String name )
{
if( name == null )
throw new NullPointerException( "Argument \"name\" is null" );
String lowCaseName = name.toLowerCase();
for( ScoreUpdateMode scoreUpdateMode : ScoreUpdateMode.values() )
{
if( scoreUpdateMode.name().toLowerCase().equals( lowCaseName ) )
return scoreUpdateMode;
}
throw new IllegalArgumentException( "No enum constant \"" + ScoreUpdateMode.class.getName() + "\" for name \"" + name + "\"" );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy