org.nutz.castor.castor.String2TimeZone Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
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