类 BooleanMorpher

java.lang.Object
com.sh.json.ezmorph.primitive.AbstractPrimitiveMorpher
com.sh.json.ezmorph.primitive.BooleanMorpher
所有已实现的接口:
Morpher

public final class BooleanMorpher extends AbstractPrimitiveMorpher
Morphs to a boolean.
  • 构造器详细资料

    • BooleanMorpher

      public BooleanMorpher()
    • BooleanMorpher

      public BooleanMorpher(boolean defaultValue)
      参数:
      defaultValue - return value if the value to be morphed is null
  • 方法详细资料

    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • getDefaultValue

      public boolean getDefaultValue()
      Returns the default value for this Morpher.
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • morph

      public boolean morph(Object value)
      Morphs the input object into an output object of the supported type.
      参数:
      value - The input value to be morphed
      抛出:
      MorphException - if conversion cannot be performed successfully
    • morphsTo

      public Class<?> morphsTo()
      从接口复制的说明: Morpher
      Returns the target Class for conversion.
      返回:
      the target Class for conversion.