类 ObjectListMorpher

java.lang.Object
com.sh.json.ezmorph.object.AbstractObjectMorpher
com.sh.json.ezmorph.object.ObjectListMorpher
所有已实现的接口:
Morpher, ObjectMorpher

public final class ObjectListMorpher extends AbstractObjectMorpher
Morphs a List to another List using a Morpher.
  • 构造器详细资料

    • ObjectListMorpher

      public ObjectListMorpher(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.
    • ObjectListMorpher

      public ObjectListMorpher(Morpher morpher, Object defaultValue)
  • 方法详细资料

    • equals

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

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

      public Object morph(Object value)
      从接口复制的说明: ObjectMorpher
      Morphs the input object into an output object of the supported type.
      参数:
      value - 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)
      从类复制的说明: AbstractObjectMorpher
      Returns true if the Morpher supports conversion from this Class.
      Supports any type that is not an Array.
      指定者:
      supports 在接口中 Morpher
      覆盖:
      supports 在类中 AbstractObjectMorpher
      参数:
      clazz - the source Class
      返回:
      true if clazz is supported by this morpher, false otherwise.