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

gw.lang.parser.coercers.IntCoercer Maven / Gradle / Ivy

There is a newer version: 1.18.2
Show newest version
/*
 * Copyright 2014 Guidewire Software, Inc.
 */

package gw.lang.parser.coercers;

import gw.lang.reflect.IType;
import gw.config.CommonServices;

public class IntCoercer extends BaseBoxedCoercer
{
  private static final IntCoercer INSTANCE = new IntCoercer();

  public Object coerceValue( IType typeToCoerceTo, Object value )
  {
    return CommonServices.getCoercionManager().makeIntegerFrom( value );
  }

  public static IntCoercer instance()
  {
    return INSTANCE;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy