类 SkipWrapper<T>


  • public class SkipWrapper<T>
    extends java.lang.Object
    Wrapper for an item and its exception if it failed processing.
    作者:
    Dave Syer, Mahmoud Ben Hassine
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      java.lang.ThrowablegetException()
      Public getter for the exception.
      TgetItem()
      Public getter for the item.
      java.lang.StringtoString() 
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • SkipWrapper

        public SkipWrapper​(T item)
        参数:
        item - the item being wrapped.
      • SkipWrapper

        public SkipWrapper​(java.lang.Throwable e)
        参数:
        e - instance of Throwable that being wrapped.
      • SkipWrapper

        public SkipWrapper​(T item,
                           @Nullable
                           java.lang.Throwable e)
    • 方法详细资料

      • getException

        @Nullable
        public java.lang.Throwable getException()
        Public getter for the exception.
        返回:
        the exception
      • getItem

        public T getItem()
        Public getter for the item.
        返回:
        the item
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object