Class ResultAndWarnings<T>
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.engine.ResultAndWarnings<T>
-
public final class ResultAndWarnings<T> extends java.lang.ObjectA tuple of some result object and (possibly empty) lists of warnings and errors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static <T> ResultAndWarnings<T>forResult(T result)static <T> ResultAndWarnings<T>forResultAndWarning(T result, TransformationWarning warning)static <T> ResultAndWarnings<T>forResultAndWarnings(T result, java.lang.Iterable<TransformationWarning> warnings)static <T> ResultAndWarnings<T>forResultAndWarnings(T result, java.lang.Iterable<TransformationWarning> warnings, java.lang.Iterable<TransformationWarning> errors)java.util.List<TransformationWarning>getErrors()TgetResult()java.util.List<TransformationWarning>getWarnings()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
forResult
@Nonnull public static <T> ResultAndWarnings<T> forResult(@Nullable T result)
-
forResultAndWarning
@Nonnull public static <T> ResultAndWarnings<T> forResultAndWarning(@Nullable T result, @Nonnull TransformationWarning warning)
-
forResultAndWarnings
@Nonnull public static <T> ResultAndWarnings<T> forResultAndWarnings(@Nullable T result, @Nonnull java.lang.Iterable<TransformationWarning> warnings)
-
forResultAndWarnings
@Nonnull public static <T> ResultAndWarnings<T> forResultAndWarnings(@Nullable T result, @Nonnull java.lang.Iterable<TransformationWarning> warnings, @Nonnull java.lang.Iterable<TransformationWarning> errors)
-
getResult
@Nullable public T getResult()
-
getWarnings
@Nonnull public java.util.List<TransformationWarning> getWarnings()
-
getErrors
@Nonnull public java.util.List<TransformationWarning> getErrors()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-