![JAR search and dependency download from the Maven repository](/logo.png)
org.loom.simpleds.functions.Base58ToIdFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of loom-appengine Show documentation
Show all versions of loom-appengine Show documentation
Uploads all artifacts belonging to configuration ':archives'.
The newest version!
package org.loom.simpleds.functions;
import org.loom.util.StringUtils;
import com.google.common.base.Function;
/**
* Transform a Base58 representation of a number to the corresponding Long value
* @see KeyToBase58IdFunction
* @author icoloma
*/
public class Base58ToIdFunction implements Function {
@Override
public Long apply(String key) {
return key == null? null : StringUtils.alphaToNumber(key);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy