APIdia Launch Partner
Top Description Methods
jdk.tools.jlink.plugin

public Interface ResourcePoolModuleView

Known Direct Implementers
jdk.tools.jlink.internal.ResourcePoolManager.ResourcePoolModuleViewImpl
Imports
java.util.Objects, .Optional, java.util.stream.Stream

The module view of a ResourcePool.

Method Summary

Modifier and TypeMethod and Description
public Optional<ResourcePoolModule>

Returns:

Optional containing the module of the given name.
findModule
(String
name of the module
name
)

Find the module, if any, of the given name.

public default Optional<ResourcePoolModule>

Returns:

Optional containing the module of the given ResourcePoolEntry
findModule
(ResourcePoolEntry
The ResourcePoolEntry whose module is looked up.
entry
)

Find the module, if any, of the given ResourcePoolEntry

public int

Returns:

the module count.
moduleCount
()

Return the number of ResourcePoolModule count in this ResourcePool.

public Stream<ResourcePoolModule>

Returns:

The stream of modules.
modules
()

The stream of modules contained in this ResourcePool.

Method Detail

findModuleback to summary
public Optional<ResourcePoolModule> findModule(String name)

Find the module, if any, of the given name.

Parameters
name:String

name of the module

Returns:Optional<ResourcePoolModule>

Optional containing the module of the given name.

findModuleback to summary
public default Optional<ResourcePoolModule> findModule(ResourcePoolEntry entry)

Find the module, if any, of the given ResourcePoolEntry

Parameters
entry:ResourcePoolEntry

The ResourcePoolEntry whose module is looked up.

Returns:Optional<ResourcePoolModule>

Optional containing the module of the given ResourcePoolEntry

moduleCountback to summary
public int moduleCount()

Return the number of ResourcePoolModule count in this ResourcePool.

Returns:int

the module count.

modulesback to summary
public Stream<ResourcePoolModule> modules()

The stream of modules contained in this ResourcePool.

Returns:Stream<ResourcePoolModule>

The stream of modules.