类 AbstractPrimitiveMorpher

java.lang.Object
com.sh.json.ezmorph.primitive.AbstractPrimitiveMorpher
所有已实现的接口:
Morpher
直接已知子类:
AbstractDecimalMorpher, AbstractIntegerMorpher, BooleanMorpher, CharMorpher

public abstract class AbstractPrimitiveMorpher extends Object implements Morpher
Base class for primitive value conversion.
  • 构造器详细资料

    • AbstractPrimitiveMorpher

      public AbstractPrimitiveMorpher()
    • AbstractPrimitiveMorpher

      public AbstractPrimitiveMorpher(boolean useDefault)
      参数:
      useDefault - if morph() should return a default value if the value to be morphed is null
  • 方法详细资料

    • isUseDefault

      public boolean isUseDefault()
      Returns if this morpher will use a default value if the value to be morphed is null
    • supports

      public boolean supports(Class<?> clazz)
      Returns true if the Morpher supports conversion from this Class.
      Supports any type that is not an Array.
      指定者:
      supports 在接口中 Morpher
      参数:
      clazz - the source Class
      返回:
      true if clazz is supported by this morpher, false otherwise.