Class MaybeByteString

java.lang.Object
com.oracle.coherence.grpc.MaybeByteString

public class MaybeByteString extends Object
A wrapper that may contain a ByteString.
  • Method Details

    • isPresent

      public boolean isPresent()
      Determine whether this MaybeByteString contains a ByteString.
      Returns:
      true if this wrapper contains a ByteString
    • value

      public com.google.protobuf.ByteString value()
      Return the wrapped value.
      Returns:
      the wrapped value
    • ofNullable

      public static MaybeByteString ofNullable(com.google.protobuf.ByteString s)
      Create a MaybeByteString.
      Parameters:
      s - the ByteString to wrap
      Returns:
      a MaybeByteString wrapping the specified ByteString
    • empty

      public static MaybeByteString empty()
      Create an empty MaybeByteString.
      Returns:
      an empty MaybeByteString