类 Nullable<A>

java.lang.Object
pkg.exoad.poprock.core.Nullable<A>

public class Nullable<A> extends Object
  • 字段详细资料

  • 构造器详细资料

    • Nullable

      private Nullable(A value)
  • 方法详细资料

    • of

      public static <B> Nullable<B> of(B value)
    • infer

      public Class<?> infer()
      Basic type inferencing. Gurantees of either of the generics type or of Null
      返回:
      The class (runtime type)
    • isNull

      public boolean isNull()
    • peek

      public A peek()
    • assign

      public void assign(A value)
    • ifNotNull

      public Nullable<A> ifNotNull(Consumer<A> cb)
    • ifNull

      public Nullable<A> ifNull(Runnable r)
    • assignIfNull

      public void assignIfNull(A ref)
    • toString

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