com.backendless.hive.Expiration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Commons lib for both server and client Java/Android SDKs
The newest version!
package com.backendless.hive;
public enum Expiration
{
None, // default
TTL, // in seconds
UnixTimestamp; // in seconds
public static Expiration valueOfIgnoreCase( String name )
{
if( name == null )
throw new NullPointerException( "Argument \"name\" is null" );
String lowCaseName = name.toLowerCase();
for( Expiration expiration : Expiration.values() )
{
if( expiration.name().toLowerCase().equals( lowCaseName ) )
return expiration;
}
throw new IllegalArgumentException( "No enum constant \"" + Expiration.class.getName() + "\" for name \"" + name + "\"" );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy