BooleanAttribute class

com.yandex.metrica.profile

public class BooleanAttribute

Methods of the class set the value of a logical attribute.

Methods

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValue(boolean value)

Updates the attribute value.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueIfUndefined(boolean 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(boolean value)

Updates the attribute value.

Parameters:
valueAttribute value: true or false.

Returns:

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

withValueIfUndefined

public UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueIfUndefined(boolean value)

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

Parameters:
valueAttribute value: true or false.

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.