Google is committed to advancing racial equity for Black communities. See how.

RecaptchaOptionalObject

public class RecaptchaOptionalObject extends Object

Class for wrapping an optional object (i.e., an immutable object that may contain a non-null reference to another object) to be used in VerificationResult.

Public Method Summary

static <T> RecaptchaOptionalObject<T>
ofNullable(T object)
Returns a RecaptchaOptionalObject wrapping the specified object, which can be null.
T
orNull()
Returns the wrapped object.

Inherited Method Summary

Public Methods

public static RecaptchaOptionalObject<T> ofNullable (T object)

Returns a RecaptchaOptionalObject wrapping the specified object, which can be null.

public T orNull ()

Returns the wrapped object.