Tabnine Logo
AptoideUtils$StringU
Code IndexAdd Tabnine to your IDE (free)

How to use
AptoideUtils$StringU
in
cm.aptoide.pt.utils

Best Java code snippets using cm.aptoide.pt.utils.AptoideUtils$StringU (Showing top 6 results out of 315)

origin: Aptoide/aptoide-client-v8

   .intValue();
 return diffDays == 1 ? mTimestampLabelYesterday
   : AptoideUtils.StringU.getFormattedString(R.string.WidgetProvider_timestamp_days_ago,
     resources, diffDays);
} else if (diffTime < DateUtils.WEEK_IN_MILLIS * 4) {
   .intValue();
 return diffDays == 1 ? mTimestampLabelWeekAgo
   : AptoideUtils.StringU.getFormattedString(R.string.WidgetProvider_timestamp_weeks_ago,
     resources, diffDays);
} else if (diffTime < DateUtils.WEEK_IN_MILLIS * 4 * 12) {
 int diffDays = Double.valueOf(Math.ceil(diffTime / (WEEK_IN_MILLIS * 4)))
   .intValue();
 return diffDays == 1 ? mTimestampLabelMonthAgo : AptoideUtils.StringU.getFormattedString(
   R.string.WidgetProvider_timestamp_months_ago, resources, diffDays);
} else {
   .intValue();
 return diffDays == 1 ? mTimestampLabelYearAgo
   : AptoideUtils.StringU.getFormattedString(R.string.WidgetProvider_timestamp_years_ago,
     resources, diffDays);
origin: Aptoide/aptoide-client-v8

 public static String getString(@StringRes int stringRes, Resources resources) {
  return StringU.getResString(stringRes, resources);
 }
}
origin: Aptoide/aptoide-client-v8

/**
 * <p>Joins the elements of the provided {@code Iterable} into a single String containing the
 * provided elements.</p> <p> <p>No delimiter is added
 * before
 * or after the list. A {@code null} separator is the same as an empty String ("").</p>
 *
 * @param iterable the {@code Iterable} providing the values to join together, may be null
 * @param separator the separator character to use, null treated as ""
 *
 * @return the joined String, {@code null} if null iterator input
 *
 * @since 2.3
 */
public static String join(final Iterable<?> iterable, final String separator) {
 if (iterable == null) {
  return null;
 }
 return join(iterable.iterator(), separator);
}
origin: Aptoide/aptoide-client-v8

if (!iterator.hasNext()) {
 @SuppressWarnings("deprecation") // ObjectUtils.toString(Object) has been deprecated in 3.2
 final String result = toString(first);
 return result;
origin: Aptoide/aptoide-client-v8

 return hours == 1 ? AptoideUtils.StringU.getFormattedString(
   R.string.WidgetProvider_timestamp_hour_ago, resources, hours)
   : AptoideUtils.StringU.getFormattedString(R.string.WidgetProvider_timestamp_hours_ago,
     resources, hours);
} else if (hours <= 0) {
 if (minutes > 0) {
  return AptoideUtils.StringU.getFormattedString(
    R.string.WidgetProvider_timestamp_minutes_ago, resources, minutes);
 } else {
origin: Aptoide/aptoide-client-v8

synchronized void startNextDownload() {
 if (!isDownloading && !isPausing) {
  isDownloading = true;
  getNextDownload().first()
    .subscribe(download -> {
     if (download != null) {
      new DownloadTask(downloadAccessor, download, fileUtils, analytics, this, apkPath,
        obbPath, downloadsStoragePath, fileDownloader).startDownload();
      Logger.getInstance()
        .d(TAG, "Download with md5 " + download.getMd5() + " started");
     } else {
      isDownloading = false;
      cacheHelper.cleanCache()
        .subscribe(cleanedSize -> Logger.getInstance()
            .d(TAG,
              "cleaned size: " + AptoideUtils.StringU.formatBytes(cleanedSize, false)),
          throwable -> {
           CrashReport.getInstance()
             .log(throwable);
          });
     }
    }, throwable -> throwable.printStackTrace());
 }
}
cm.aptoide.pt.utilsAptoideUtils$StringU

Most used methods

  • formatBytes
  • getFormattedString
  • getResString
  • join
    Joins the elements of the provided Iterator into a single String containing the provided elements.
  • toString

Popular in Java

  • Making http requests using okhttp
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for Android Studio
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