类 Result<T,V extends Enum<?>>

java.lang.Object
pkg.exoad.poprock.core.Result<T,V>
类型参数:
T - The type of the result
V - The resul description of type Enum

public final class Result<T,V extends Enum<?>> extends Object
An improvised pair data structure for returning a result with a description.
作者:
Jack Meng
  • 字段详细资料

    • result

      public final T result
    • reason

      public final V extends Enum<?> reason
  • 构造器详细资料

    • Result

      private Result(T result, V reason)
  • 方法详细资料

    • make

      public static <A, B extends Enum<?>> Result<A,B> make(A result, B reason)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object