类 ObjectArrayMorpher

java.lang.Object
com.sh.json.ezmorph.array.AbstractArrayMorpher
com.sh.json.ezmorph.array.ObjectArrayMorpher
所有已实现的接口:
Morpher, ObjectMorpher

public final class ObjectArrayMorpher extends AbstractArrayMorpher
Morphs an array to another array using a Morpher.
  • 构造器详细资料

    • ObjectArrayMorpher

      public ObjectArrayMorpher(Morpher morpher)
      Creates a new ArrayMorpher which will use another Morpher for its inner type.
      The inner morpher can not morph to an array. Multiple dimension arrays are already handled by this class.
      参数:
      morpher - the Morpher that will handle the array's inner type.
  • 方法详细资料

    • equals

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

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

      public Object morph(Object array)
      从接口复制的说明: ObjectMorpher
      Morphs the input object into an output object of the supported type.
      参数:
      array - The input value to be morphed
    • morphsTo

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

      public boolean supports(Class<?> clazz)
      从接口复制的说明: Morpher
      Returns true if the Morpher supports conversion from this Class.
      指定者:
      supports 在接口中 Morpher
      覆盖:
      supports 在类中 AbstractArrayMorpher
      参数:
      clazz - the source Class
      返回:
      true if clazz is supported by this morpher, false otherwise.