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

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

Best Java code snippets using net.sf.ehcache.constructs.nonstop.util.OverrideCheck (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.utilOverrideCheck

Javadoc

A utility class to check whether one class overrides all methods of its superclass or an interface that it implements

Most used methods

  • methodsFor

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 25 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