Class ReturnT<T>

java.lang.Object
com.xxl.job.core.biz.model.ReturnT<T>
Type Parameters:
T -
All Implemented Interfaces:
Serializable

public class ReturnT<T> extends Object implements Serializable
common return
Author:
xuxueli 2015-12-4 16:32:31
See Also:
  • Field Details

  • Constructor Details

    • ReturnT

      public ReturnT()
    • ReturnT

      public ReturnT(int code, String msg)
    • ReturnT

      public ReturnT(int code, String msg, T content)
  • Method Details

    • getCode

      public int getCode()
    • setCode

      public void setCode(int code)
    • getMsg

      public String getMsg()
    • setMsg

      public void setMsg(String msg)
    • getContent

      public T getContent()
    • setContent

      public void setContent(T content)
    • toString

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

      public boolean isSuccess()
      is success
      Returns:
    • of

      public static <T> ReturnT<T> of(int code, String msg, T data)
    • of

      public static <T> ReturnT<T> of(int code, String msg)
    • ofSuccess

      public static <T> ReturnT<T> ofSuccess(T data)
    • ofSuccess

      public static <T> ReturnT<T> ofSuccess()
    • ofFail

      public static <T> ReturnT<T> ofFail(String msg)
    • ofFail

      public static <T> ReturnT<T> ofFail()