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

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

Best Java code snippets using it.tidalwave.bluebill.taxonomy.mobile.TaxonFinder.result (Showing top 3 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/it-tidalwave-bluebill-mobile-taxonomy

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Override
public void readExternal (final @Nonnull ObjectInput oi)
 throws IOException, ClassNotFoundException
 {
  final Id id = (Id)oi.readObject();
  try
   {
    final Taxonomy taxonomy = Locator.find(TaxonomyPreferences.class).getTaxonomy();
    taxon = taxonomy.findTaxa().withId(id).result();
   }
  catch (NotFoundException e)
   {
    throw new IOException(e.toString()); // Java 5 / Android compatibility
   }
 }
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-android-common

/*******************************************************************************************************************
 *
 * Retrieves the {@link Taxon} parameter from an {@link Intent}.
 * 
 * @return                     the {@code Taxon}
 * @throws  NotFoundException  if no {@code Taxon} has been passed as a parameter
 *
 ******************************************************************************************************************/
@Nonnull
public static Taxon getTaxon (final @Nonnull Intent intent)
 throws NotFoundException
 {
  NotFoundException.throwWhenNull(intent, "No Intent");
  final String id = NotFoundException.throwWhenNull(intent.getExtras(), "No extras").getString(TAXON_ID);
  NotFoundException.throwWhenNull(id, "No taxonId");
  return Locator.find(TaxonomyPreferences.class).getTaxonomy().findTaxa().withId(new Id(id)).result();
 }
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-taxonomy

/*******************************************************************************************************************
 *
 *
 ******************************************************************************************************************/
@Nonnull
public List<Taxon> getRecentTaxa()
 {
  logger.info("getRecentTaxa()");
  final List<Taxon> taxa = new ArrayList<Taxon>();
  final Taxonomy taxonomy = Locator.find(TaxonomyPreferences.class).getTaxonomy();
  for (final Id taxonId : taxonIdHistory)
   {
    try
     {
      taxa.add(taxonomy.findTaxa().withId(taxonId).result());
     }
    catch (NotFoundException e)
     {
      logger.warning("Can't retrieve taxon for id: %s", taxonId);
     }
   }
  return taxa;
 }
it.tidalwave.bluebill.taxonomy.mobileTaxonFinderresult

Popular methods of TaxonFinder

  • withId
    Specifies an Id for finding a Taxon.
  • results
  • 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