Tabnine Logo
ModuleInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
ModuleInfo
in
org.jfree.base.modules

Best Java code snippets using org.jfree.base.modules.ModuleInfo (Showing top 20 results out of 315)

origin: jfree/jcommon

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: jfree/jcommon

if (moduleRequirement.getMajorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMajorVersion(),
    module.getMajorVersion());
  if (compare > 0) {
if (moduleRequirement.getMinorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMinorVersion(),
    module.getMinorVersion());
  if (compare > 0) {
if (moduleRequirement.getPatchLevel() == null) {
  return true;
  if (acceptVersion(moduleRequirement.getPatchLevel(),
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
origin: org.jfree/com.springsource.org.jfree

if (moduleRequirement.getMajorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMajorVersion(),
    module.getMajorVersion());
  if (compare > 0) {
if (moduleRequirement.getMinorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMinorVersion(),
    module.getMinorVersion());
  if (compare > 0) {
if (moduleRequirement.getPatchLevel() == null) {
  return true;
  if (acceptVersion(moduleRequirement.getPatchLevel(),
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
origin: org.jfree/jcommon

if (moduleRequirement.getMajorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMajorVersion(),
    module.getMajorVersion());
  if (compare > 0) {
if (moduleRequirement.getMinorVersion() == null) {
  return true;
  final int compare = acceptVersion(moduleRequirement.getMinorVersion(),
    module.getMinorVersion());
  if (compare > 0) {
if (moduleRequirement.getPatchLevel() == null) {
  return true;
  if (acceptVersion(moduleRequirement.getPatchLevel(),
    module.getPatchLevel()) > 0) {
    Log.debug("Did not accept patchlevel: " 
        + moduleRequirement.getPatchLevel() + " - " 
        + module.getPatchLevel());
    return false;
origin: org.jfree/com.springsource.org.jfree

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/jcommon

/**
 * Two moduleinfos are equal,if they have the same module class.
 *
 * @param o the other object to compare.
 * @return true, if the module points to the same module, false otherwise.
 */
public boolean equals(final Object o)
{
 if (this == o)
 {
  return true;
 }
 if (!(o instanceof DefaultModuleInfo))
 {
  return false;
 }
 final ModuleInfo defaultModuleInfo = (ModuleInfo) o;
 if (!this.moduleClass.equals(defaultModuleInfo.getModuleClass()))
 {
  return false;
 }
 return true;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: jfree/jcommon

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: org.jfree/jcommon

/**
 * Checks, whether a module is a base module of an given module.
 *
 * @param mod the module which to check
 * @param mi the module info of the suspected base module.
 * @return true, if the given module info describes a base module of the
 * given module, false otherwise.
 */
private static boolean isBaseModule(final Module mod, final ModuleInfo mi)
{
 ModuleInfo[] info = mod.getRequiredModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 info = mod.getOptionalModules();
 for (int i = 0; i < info.length; i++)
 {
  if (info[i].getModuleClass().equals(mi.getModuleClass()))
  {
   return true;
  }
 }
 return false;
}
origin: org.jfree/jcommon

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: org.jfree/com.springsource.org.jfree

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: jfree/jcommon

    tempModules.toArray(new ModuleInfo[tempModules.size()]);
  for (int i = 0; i < mods.length; i++) {
    if (mods[i].getModuleClass().equals(module.getModuleClass())) {
      return RETURN_MODULE_LOADED;
  (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
for (int i = 0; i < packageStates.length; i++) {
  if (packageStates[i].getModule().getModuleClass().equals(module.getModuleClass())) {
    if (packageStates[i].getState() == PackageState.STATE_ERROR) {
      return RETURN_MODULE_ERROR;
origin: jfree/jcommon

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: org.jfree/jcommon

/**
 * Checks, whether a certain module is available.
 *
 * @param moduleDescription the module description of the desired module.
 * @return true, if the module is available and the version of the module
 *         is compatible, false otherwise.
 */
public boolean isModuleAvailable(final ModuleInfo moduleDescription) {
  final PackageState[] packageStates =
    (PackageState[]) this.modules.toArray(new PackageState[this.modules.size()]);
  for (int i = 0; i < packageStates.length; i++) {
    final PackageState state = packageStates[i];
    if (state.getModule().getModuleClass().equals(moduleDescription.getModuleClass())) {
      return (state.getState() == PackageState.STATE_INITIALIZED);
    }
  }
  return false;
}
origin: jfree/jcommon

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: org.jfree/jcommon

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: org.jfree/com.springsource.org.jfree

  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
  (new Log.SimpleMessage
   ("A dependent module was not found in the list of known modules.",
   info[i].getModuleClass()));
 continue;
  moduleMap.get(info[i].getModuleClass());
if (dependentModule == null)
origin: jfree/jcommon

for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
origin: org.jfree/jcommon

for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
for (int modPos = 0; modPos < modInfo.length; modPos++)
 final String moduleName = modInfo[modPos].getModuleClass();
 final SortModule reqMod = (SortModule) moduleMap.get(moduleName);
 if (reqMod == null)
org.jfree.base.modulesModuleInfo

Javadoc

The Module info class encapsulates metadata about a given module. It holds the list of dependencies and the module version and description.

Most used methods

  • getMajorVersion
    Returns the major version of the base module. The string should contain a compareable character sequ
  • getMinorVersion
    Returns the minor version of the base module. The string should contain a compareable character sequ
  • getModuleClass
    Returns the module class of the desired base module.
  • getPatchLevel
    Returns the patchlevel version of the base module. The patch level should be used to mark bugfixes.

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Github Copilot alternatives
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