Class SystemUtil.Captured<T>

java.lang.Object
com.norconex.commons.lang.SystemUtil.Captured<T>
Type Parameters:
T - the type of the return value for SystemUtil.callAndCaptureOutput(Callable) or Void for SystemUtil.runAndCaptureOutput(Runnable)
Enclosing class:
SystemUtil

public static class SystemUtil.Captured<T> extends Object
Holds possible return value and standard output/error when invoking SystemUtil.callAndCaptureOutput(Callable) or SystemUtil.runAndCaptureOutput(Runnable).
Since:
3.0.0
  • Constructor Details

    • Captured

      public Captured()
  • Method Details

    • getReturnValue

      public T getReturnValue()
    • getStdOut

      public String getStdOut()
    • getStdErr

      public String getStdErr()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object