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

org.loom.simpleds.functions.Base58ToIdFunction Maven / Gradle / Ivy

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