NumberAttribute class

com.yandex.metrica.profile

public class NumberAttribute

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

Methods

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValue(double value)

Updates the attribute value.

UserProfileUpdate<? extends UserProfileUpdatePatcher>withValueIfUndefined(double 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

UserProfileUpdate<? extends UserProfileUpdatePatcher> withValue(double value)

Updates the attribute value.

Parameters:
value

The value of the numeric attribute. The data type is double.

Returns:

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

withValueIfUndefined

UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueIfUndefined(double value)

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

Parameters:
value

The value of the numeric attribute. The data type is double.

Returns:

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

withValueReset

UserProfileUpdate<? extends UserProfileUpdatePatcher> withValueReset()

Resets the attribute value.

Returns:

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