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

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

Best Java code snippets using it.tidalwave.bluebill.taxonomy.mobile.TaxonFinder.withId (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.mobileTaxonFinderwithId

Javadoc

Specifies an Id for finding a Taxon.

Popular methods of TaxonFinder

  • result
  • results
  • withRank
    Specifies a Rank for finding a Taxon.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • JLabel (javax.swing)
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