Class Result<E>

java.lang.Object
nl.vpro.api.client.utils.Result<E>

public class Result<E> extends Object
Since:
1.0
Author:
Michiel Meeuwissen
  • Method Details

    • success

      public static Result<Void> success()
    • success

      public static <E> Result<E> success(E entity)
    • success

      public static <E> Result<E> success(javax.ws.rs.core.Response response, Class<E> entityClass)
    • notneeded

      public static <E> Result<E> notneeded()
    • error

      public static <E> Result<E> error(String message)
    • fatal

      public static <E> Result<E> fatal(String message, Throwable t)
    • notfound

      public static <E> Result<E> notfound(String message)
    • aborted

      public static <E> Result<E> aborted(String message)
    • denied

      public static <E> Result<E> denied(String message)
    • invalid

      public static <E> Result<E> invalid(String message)
    • needsRetry

      public boolean needsRetry()
    • isOk

      public boolean isOk()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static <E> @NonNull Result.Builder<E> builder()
    • getStatus

      public Result.Status getStatus()
    • getErrors

      public String getErrors()
    • getCause

      public Throwable getCause()
    • getEntity

      public E getEntity()