congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TransformAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
TransformAttribute
in
com.orhanobut.tracklytics

Best Java code snippets using com.orhanobut.tracklytics.TransformAttribute (Showing top 3 results out of 315)

origin: orhanobut/tracklytics

private void addTransformAttribute(TransformAttribute attribute, Object result, Map<Integer, String> transformMap,
                  Map<String, Object> attributes) {
 if (attribute == null) return;
 Object value = null;
 if (result != null) {
  value = transformMap.get(result);
 } else if (attribute.defaultValue().length() != 0) {
  value = attribute.defaultValue();
 }
 attributes.put(attribute.value(), value);
 if (attribute.isSuper()) {
  addSuperAttribute(attribute.value(), value);
 }
}
origin: orhanobut/tracklytics

@TrackEvent("transform")
@TransformAttributeMap(
  keys = {1, 2},
  values = {"finished", "accepted"}
)
private void onItemSelected(@TransformAttribute("status") int position) {
}
origin: orhanobut/tracklytics

if (value != null) {
 result = transformAttributeMap.get(value);
} else if (transformAttribute.defaultValue().length() != 0) {
 result = transformAttribute.defaultValue();
attributes.put(transformAttribute.value(), result);
if (transformAttribute.isSuper()) {
 addSuperAttribute(transformAttribute.value(), result);
com.orhanobut.tracklyticsTransformAttribute

Most used methods

  • <init>
  • defaultValue
  • isSuper
  • value

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now