Examples of ByteConverter


Examples of org.more.convert.convert.ByteConverter

     * throw an exception when a conversion error occurs, otherwise <code>
     * <code>false</code> if a default value should be used.
     */
    private void registerPrimitives(final boolean throwException) {
        this.register(Boolean.TYPE, throwException ? new BooleanConverter() : new BooleanConverter(Boolean.FALSE));
        this.register(Byte.TYPE, throwException ? new ByteConverter() : new ByteConverter(ConverterBean.ZERO));
        this.register(Character.TYPE, throwException ? new CharacterConverter() : new CharacterConverter(ConverterBean.SPACE));
        this.register(Double.TYPE, throwException ? new DoubleConverter() : new DoubleConverter(ConverterBean.ZERO));
        this.register(Float.TYPE, throwException ? new FloatConverter() : new FloatConverter(ConverterBean.ZERO));
        this.register(Integer.TYPE, throwException ? new IntegerConverter() : new IntegerConverter(ConverterBean.ZERO));
        this.register(Long.TYPE, throwException ? new LongConverter() : new LongConverter(ConverterBean.ZERO));
View Full Code Here

Examples of org.soybeanMilk.core.bean.converters.ByteConverter

   */
  protected void addStringSourceConverters()
  {
    //基本类型及其包装类型
    addConverter(String.class, Boolean.class, new BooleanConverter());
    addConverter(String.class, Byte.class, new ByteConverter());
    addConverter(String.class, Character.class, new CharacterConverter());
    addConverter(String.class, Double.class, new DoubleConverter());
    addConverter(String.class, Float.class, new FloatConverter());
    addConverter(String.class, Integer.class, new IntegerConverter());
    addConverter(String.class, Long.class, new LongConverter());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.