Package com.oracle.coherence.grpc
Class MaybeByteString
java.lang.Object
com.oracle.coherence.grpc.MaybeByteString
A wrapper that may contain a
ByteString
.-
Method Summary
Modifier and TypeMethodDescriptionstatic MaybeByteString
empty()
Create an emptyMaybeByteString
.boolean
Determine whether thisMaybeByteString
contains aByteString
.static MaybeByteString
ofNullable
(com.google.protobuf.ByteString s) Create aMaybeByteString
.com.google.protobuf.ByteString
value()
Return the wrapped value.
-
Method Details
-
isPresent
public boolean isPresent()Determine whether thisMaybeByteString
contains aByteString
.- Returns:
true
if this wrapper contains aByteString
-
value
public com.google.protobuf.ByteString value()Return the wrapped value.- Returns:
- the wrapped value
-
ofNullable
Create aMaybeByteString
.- Parameters:
s
- theByteString
to wrap- Returns:
- a
MaybeByteString
wrapping the specifiedByteString
-
empty
Create an emptyMaybeByteString
.- Returns:
- an empty
MaybeByteString
-