public final class CounterAttribute
extends java.lang.Object
Методы класса задают значение атрибута типа счетчик.

ПРИМЕР:

     CounterAttribute timeLeftAttribute = Attribute.customCounter("time_left");
     UserProfile userProfile = new UserProfile.Builder()
                     .apply(Attribute.timeLeftAttribute().withDelta(-10d))
                     .build();
 

Method Summary

All Methods
Instance Methods
Concrete Methods
Modifier and TypeMethod and Description
UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher>withDelta(double value)
Обновляет значение атрибута, изменяя его на указанную дельту.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail

withDelta

@NonNull
public UserProfileUpdate<? extends com.yandex.metrica.impl.profile.UserProfileUpdatePatcher> withDelta(double value)
Обновляет значение атрибута, изменяя его на указанную дельту.
Parameters:
value - Дельта, на которую необходимо изменить значение атрибута.
Returns:
Объект UserProfileUpdate, который содержит все обновления атрибутов.