congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
OverrideCheck.methodsFor
Code IndexAdd Tabnine to your IDE (free)

How to use
methodsFor
method
in
net.sf.ehcache.constructs.nonstop.util.OverrideCheck

Best Java code snippets using net.sf.ehcache.constructs.nonstop.util.OverrideCheck.methodsFor (Showing top 4 results out of 315)

origin: net.sf.ehcache/ehcache

/**
 * Method to check a subclass overrides all methods in its superclass or the interface it implements
 * 
 * @param parent
 * @param subClass
 */
public static void check(Class parent, Class subClass) {
  boolean excludeSuper = parent.isAssignableFrom(subClass);
  Set<String> superMethods = methodsFor(parent, false);
  Set<String> subMethods = methodsFor(subClass, excludeSuper);
  List<String> missing = new ArrayList();
  for (String method : superMethods) {
    if (!subMethods.contains(method)) {
      // This class should be overriding all methods on the super class
      missing.add(method);
    }
  }
  if (!missing.isEmpty()) {
    throw new RuntimeException(subClass.getName() + " is missing overrides (defined in " + parent.getName() + "):\n" + missing);
  }
}
origin: net.sf.ehcache.internal/ehcache-core

/**
 * Method to check a subclass overrides all methods in its superclass or the interface it implements
 * 
 * @param parent
 * @param subClass
 */
public static void check(Class parent, Class subClass) {
  boolean excludeSuper = parent.isAssignableFrom(subClass);
  Set<String> superMethods = methodsFor(parent, false);
  Set<String> subMethods = methodsFor(subClass, excludeSuper);
  List<String> missing = new ArrayList();
  for (String method : superMethods) {
    if (!subMethods.contains(method)) {
      // This class should be overriding all methods on the super class
      missing.add(method);
    }
  }
  if (!missing.isEmpty()) {
    throw new RuntimeException(subClass.getName() + " is missing overrides (defined in " + parent.getName() + "):\n" + missing);
  }
}
origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache

/**
 * Method to check a subclass overrides all methods in its superclass or the interface it implements
 * 
 * @param parent
 * @param subClass
 */
public static void check(Class parent, Class subClass) {
  boolean excludeSuper = parent.isAssignableFrom(subClass);
  Set<String> superMethods = methodsFor(parent, false);
  Set<String> subMethods = methodsFor(subClass, excludeSuper);
  List<String> missing = new ArrayList();
  for (String method : superMethods) {
    if (!subMethods.contains(method)) {
      // This class should be overriding all methods on the super class
      missing.add(method);
    }
  }
  if (!missing.isEmpty()) {
    throw new RuntimeException(subClass.getName() + " is missing overrides (defined in " + parent.getName() + "):\n" + missing);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache

/**
 * Method to check a subclass overrides all methods in its superclass or the interface it implements
 * 
 * @param parent
 * @param subClass
 */
public static void check(Class parent, Class subClass) {
  boolean excludeSuper = parent.isAssignableFrom(subClass);
  Set<String> superMethods = methodsFor(parent, false);
  Set<String> subMethods = methodsFor(subClass, excludeSuper);
  List<String> missing = new ArrayList();
  for (String method : superMethods) {
    if (!subMethods.contains(method)) {
      // This class should be overriding all methods on the super class
      missing.add(method);
    }
  }
  if (!missing.isEmpty()) {
    throw new RuntimeException(subClass.getName() + " is missing overrides (defined in " + parent.getName() + "):\n" + missing);
  }
}
net.sf.ehcache.constructs.nonstop.utilOverrideCheckmethodsFor

Popular methods of OverrideCheck

    Popular in Java

    • Start an intent from android
    • compareTo (BigDecimal)
    • getSystemService (Context)
    • getExternalFilesDir (Context)
    • HttpURLConnection (java.net)
      An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • JFileChooser (javax.swing)
    • Response (javax.ws.rs.core)
      Defines the contract between a returned instance and the runtime when an application needs to provid
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • Top plugins for WebStorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now