UserConsent Class

public final class UserConsent
extends ExpandableStringEnum<UserConsent>

User consent value provided.

Field Summary

Modifier and Type Field and Description
static final UserConsent NO

Static value No for UserConsent.

static final UserConsent YES

Static value Yes for UserConsent.

Constructor Summary

Constructor Description
UserConsent()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UserConsent value.

Method Summary

Modifier and Type Method and Description
static UserConsent fromString(String name)

Creates or finds a UserConsent from its string representation.

static Collection<UserConsent> values()

Gets known UserConsent values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

NO

public static final UserConsent NO

Static value No for UserConsent.

YES

public static final UserConsent YES

Static value Yes for UserConsent.

Constructor Details

UserConsent

@Deprecated
public UserConsent()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of UserConsent value.

Method Details

fromString

public static UserConsent fromString(String name)

Creates or finds a UserConsent from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding UserConsent.

values

public static Collection<UserConsent> values()

Gets known UserConsent values.

Returns:

known UserConsent values.

Applies to