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

org.nutz.castor.castor.String2TimeZone Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.castor.castor;

import java.util.TimeZone;

import org.nutz.castor.Castor;
import org.nutz.lang.Strings;

public class String2TimeZone extends Castor {

	@Override
	public TimeZone cast(String src, Class toType, String... args) {
		if (Strings.isBlank(src))
			return null;
		return TimeZone.getTimeZone(src);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy