congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ClassAnnotationParser
Code IndexAdd Tabnine to your IDE (free)

How to use
ClassAnnotationParser
in
uk.co.ribot.easyadapter.annotations

Best Java code snippets using uk.co.ribot.easyadapter.annotations.ClassAnnotationParser (Showing top 3 results out of 315)

origin: ribot/easy-adapter

public static Integer parseItemLayoutId(Class<? extends ItemViewHolder> itemViewHolderClass) {
  Integer itemLayoutId = ClassAnnotationParser.getLayoutId(itemViewHolderClass);
  if (itemLayoutId == null) {
    throw new LayoutIdMissingException();
  }
  return itemLayoutId;
}
origin: ribot/easy-adapter

@Test public void testGetLayoutId() throws Exception{
  Integer layoutId = ClassAnnotationParser.getLayoutId(ItemViewHolderWithLayoutId.class);
  Assert.assertTrue(layoutId.equals(LAYOUT_ID));
}
origin: ribot/easy-adapter

@Test public void testGetLayoutIdWithoutAnnotation() throws Exception{
  Integer layoutId = ClassAnnotationParser.getLayoutId(ItemViewHolderWithoutLayoutId.class);
  Assert.assertNull(layoutId);
}
uk.co.ribot.easyadapter.annotationsClassAnnotationParser

Most used methods

  • getLayoutId
    Parse LayoutId annotation form a class

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JList (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim 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