Tabnine Logo
Attribute.defaultValue
Code IndexAdd Tabnine to your IDE (free)

How to use
defaultValue
method
in
com.orhanobut.tracklytics.Attribute

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

origin: orhanobut/tracklytics

private void addSuperAttributesFromParameters(Annotation[][] keys, Object[] values) {
 if (keys == null || values == null) {
  return;
 }
 for (int i = 0, size = keys.length; i < size; i++) {
  if (keys[i].length == 0) {
   continue;
  }
  Object value = values[i];
  Annotation annotation = keys[i][0];
  if (annotation instanceof Attribute) {
   Attribute attribute = (Attribute) annotation;
   Object result = null;
   if (value != null) {
    result = value;
   } else if (attribute.defaultValue().length() != 0) {
    result = attribute.defaultValue();
   }
   addSuperAttribute(attribute.value(), result);
  }
 }
}
origin: orhanobut/tracklytics

private void addAttribute(Attribute attribute, Object methodResult, Map<String, Object> attributes) {
 if (attribute == null) return;
 Object value = null;
 if (methodResult != null) {
  value = methodResult;
 } else if (attribute.defaultValue().length() != 0) {
  value = attribute.defaultValue();
 }
 attributes.put(attribute.value(), value);
 if (attribute.isSuper()) {
  addSuperAttribute(attribute.value(), value);
 }
}
origin: orhanobut/tracklytics

if (value != null) {
 result = value;
} else if (attribute.defaultValue().length() != 0) {
 result = attribute.defaultValue();
com.orhanobut.tracklyticsAttributedefaultValue

Popular methods of Attribute

  • <init>
  • isSuper
  • value

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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