Uses of Class java.lang.module.ModuleDescriptor.Requires (Java SE 26 & JDK 26)
Description: use: module: java.base, package: java.lang.module, class: ModuleDescriptor, class: Requires

# Uses of Class
java.lang.module.ModuleDescriptor.Requires

Packages that use ModuleDescriptor.Requires
Package
Description
java.lang.module
Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.

- ## Uses of ModuleDescriptor.Requires in java.lang.module

  Classes in java.lang.module that implement interfaces with type arguments of type ModuleDescriptor.Requires
  Modifier and Type
  Class
  Description
  `static final class`
  `ModuleDescriptor.Requires`
  A dependence upon a module.
  Methods in java.lang.module that return types with arguments of type ModuleDescriptor.Requires
  Modifier and Type
  Method
  Description
  `Set<ModuleDescriptor.Requires>`
  ModuleDescriptor.`requires()`
  Returns the set of `Requires` objects representing the module dependences.
  Methods in java.lang.module with parameters of type ModuleDescriptor.Requires
  Modifier and Type
  Method
  Description
  `int`
  ModuleDescriptor.Requires.`compareTo(ModuleDescriptor.Requires that)`
  Compares this module dependence to another.
  `ModuleDescriptor.Builder`
  ModuleDescriptor.Builder.`requires(ModuleDescriptor.Requires req)`
  Adds a dependence on a module.