Package jolt.core

Class Result<T>

All Implemented Interfaces:
JoltNative
Direct Known Subclasses:
ShapeResult

public abstract class Result<T> extends SegmentedJoltNative
Result relies on preview features of the Java platform:
Programs can only use Result when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
  • Constructor Details

  • Method Details

    • hasError

      public abstract boolean hasError()
    • or

      @Nullable public abstract T or()
    • orThrow

      public T orThrow()
    • getError

      public abstract String getError()
    • throwError

      public void throwError()