public final class NumberAttribute
extends java.lang.Object
EXAMPLE:
UserProfile userProfile = new UserProfile.Builder()
.apply(Attribute.customNumber("level").withValue(5d))
.build();
| Modifier and Type | Method and Description |
|---|---|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValue(double value)
Updates the attribute with the specified value.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueIfUndefined(double value)
Updates the attribute with the specified value only if the attribute value is undefined.
|
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> |
withValueReset()
Resets the attribute value.
|
@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValue(double value)
value - Number valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueIfUndefined(double value)
value - Number valueUserProfileUpdate object@NonNull public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withValueReset()
UserProfileUpdate object