Package com.powsybl.afs.ext.base
Class ScriptResult<T>
- java.lang.Object
-
- com.powsybl.afs.ext.base.ScriptResult<T>
-
public class ScriptResult<T> extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description ScriptResult(T value)
ScriptResult(T value, String output, ScriptError error)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptError
getError()
String
getOutput()
T
getValue()
T
getValueOrThrowIfError(ProjectFile projectFile)
static <T> ScriptResult<T>
of(T value)
String
toString()
-
-
-
Constructor Detail
-
ScriptResult
public ScriptResult(T value)
-
ScriptResult
public ScriptResult(T value, String output, ScriptError error)
-
-
Method Detail
-
of
public static <T> ScriptResult<T> of(T value)
-
getValue
public T getValue()
-
getValueOrThrowIfError
public T getValueOrThrowIfError(ProjectFile projectFile)
-
getOutput
public String getOutput()
-
getError
public ScriptError getError()
-
-