GenderAttribute class

com.yandex.metrica.profile

public class GenderAttribute

Methods of the class set the gender of the user profile.

Nested classes

Methods

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValue(@NonNull GenderAttribute.Gender value)

Updates the attribute value.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueIfUndefined(@NonNull GenderAttribute.Gender value)

Updates the attribute with the specified value only if the attribute value is undefined.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueReset()

Resets the attribute value.

Method descriptions

withValue

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValue(@NonNull GenderAttribute.Gender value)

Updates the attribute value.

Parameters:
valueThe gender value from the GenderAttribute.Gender enumeration.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.

withValueIfUndefined

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueIfUndefined(@NonNull GenderAttribute.Gender value)

Updates the attribute with the specified value only if the attribute value is undefined.

Parameters:
valueThe gender value from the GenderAttribute.Gender enumeration.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.

withValueReset

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueReset()

Resets the attribute value.

Returns:

The instance of the UserProfileUpdate class that contains all attribute updates.