类 PassThroughFieldExtractor<T>

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      java.lang.Object[]extract​(T item)
      Get an array of fields as close as possible to the input.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 方法详细资料

      • extract

        public java.lang.Object[] extract​(T item)
        Get an array of fields as close as possible to the input. The result depends on the type of the input:
        • A FieldSet or array will be returned as is
        • For a Collection the toArray() method will be used
        • For a Map the values() will be returned as an array
        • Otherwise it is wrapped in a single element array.
        Note that no attempt is made to sort the values, so passing in an unordered collection or map is probably a bad idea. Spring often gives you an ordered Map (e.g. if extracting data from a generic query using JDBC), so check the documentation for whatever is being used to generate the input.
        指定者:
        extract 在接口中 FieldExtractor<T>
        参数:
        item - the object to convert
        返回:
        an array of objects as close as possible to the original item