Class EntryOptional<A,B>

java.lang.Object
io.inverno.mod.redis.operations.EntryOptional<A,B>
Type Parameters:
A - key type
B - value type

public class EntryOptional<A,B> extends Object
Since:
1.4
Author:
Jeremy Kuhn
  • Method Details

    • getKey

      public A getKey()
      Returns:
    • getValue

      public Optional<B> getValue()
      Returns:
    • empty

      public static <A, B> EntryOptional<A,B> empty(A key)
      Type Parameters:
      A -
      B -
      Parameters:
      key -
      Returns:
    • of

      public static <A, B> EntryOptional<A,B> of(A key, B value)
      Type Parameters:
      A -
      B -
      Parameters:
      key -
      value -
      Returns:
    • ofNullable

      public static <A, B> EntryOptional<A,B> ofNullable(A key, B value)
      Type Parameters:
      A -
      B -
      Parameters:
      key -
      value -
      Returns: