Codota Logo
TaxonFinder.results
Code IndexAdd Codota to your IDE (free)

How to use
results
method
in
it.tidalwave.bluebill.taxonomy.mobile.TaxonFinder

Best Java code snippets using it.tidalwave.bluebill.taxonomy.mobile.TaxonFinder.results (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: it.tidalwave.bluebill/bluebill-mobile-android

/*******************************************************************************************************************
 *
 * Loads the taxa. If a {@link Taxon} is contained in the {@link Intent}, the sub taxa will be loaded and the cache
 * disabled since there are no taxa with a number of sub taxa so large to create performance problems while sorting.
 * If no {@code Taxon} is contained in the {@code Intent}, all the taxa with the {@link Rank} bound to this 
 * controller will be loaded; and the cache enabled if the rank is {@code SPECIES} since there can be so many
 * items to create performance problems when sorting. The latter behaviour also happens if the {@code Intent}
 * contains a {@code Taxon}, but it's not from the current taxonomy.
 * 
 * TODO: This management of cache is cumbersome. Using Finders with sorting capabilities could be a solution,
 * moving all the caching logics to the Finder themselves (and eventually could opaquely implement sorting
 * based on OpenSesame query that could be fast enough to avoid caching).
 *
 ******************************************************************************************************************/
@Nonnull
private void loadTaxa (final @Nonnull Intent intent)
 {
  taxa.clear();
  cacheEnabled = false;
  try
   {
    taxa.addAll(TaxonIntentHelper.getTaxon(intent).findSubTaxa().results());
   }
  catch (NotFoundException e) // no Taxon in the Intent
   {
    taxa.addAll(taxonomyPreferences.get().getTaxonomy().findTaxa().withRank(rank).results());
    cacheEnabled = rank == Rank.SPECIES;
   }
  ensureTaxaAreSorted();
 }
it.tidalwave.bluebill.taxonomy.mobileTaxonFinderresults

Popular methods of TaxonFinder

  • result
  • withId
    Specifies an Id for finding a Taxon.
  • withRank
    Specifies a Rank for finding a Taxon.

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getSharedPreferences (Context)
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now