Top Description Inners Fields Constructors Methods
io.github.classgraph

public Class ModuleInfoList

extends MappableInfoList<ModuleInfo>
Class Inheritance
Imports
java.util.Collection

A list of ModuleInfo objects.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ModuleInfoList.ModuleInfoFilter

Filter an ModuleInfoList using a predicate mapping an ModuleInfo object to a boolean, producing another ModuleInfoList for all items in the list for which the predicate is true.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ModuleInfoList()

Constructor.

pack-priv
ModuleInfoList(final int
the size hint
sizeHint
)

Constructor.

pack-priv
ModuleInfoList(final Collection<ModuleInfo>
the module info collection
moduleInfoCollection
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public ModuleInfoList

Returns:

The subset of the ModuleInfo objects in this list for which the given filter predicate is true.
filter
(final ModuleInfoList.ModuleInfoFilter
The ModuleInfoFilter to apply.
filter
)

Find the subset of the ModuleInfo objects in this list for which the given filter predicate is true.

Inherited from io.github.classgraph.MappableInfoList:
asMapcontainsNameget

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.github.classgraph.MappableInfoList.serialVersionUID.

serialVersionUID

Constructor Detail

ModuleInfoListback to summary
pack-priv ModuleInfoList()

Constructor.

ModuleInfoListback to summary
pack-priv ModuleInfoList(final int sizeHint)

Constructor.

Parameters
sizeHint:int

the size hint

ModuleInfoListback to summary
pack-priv ModuleInfoList(final Collection<ModuleInfo> moduleInfoCollection)

Constructor.

Parameters
moduleInfoCollection:Collection<ModuleInfo>

the module info collection

Method Detail

filterback to summary
public ModuleInfoList filter(final ModuleInfoList.ModuleInfoFilter filter)

Find the subset of the ModuleInfo objects in this list for which the given filter predicate is true.

Parameters
filter:ModuleInfoList.ModuleInfoFilter

The ModuleInfoFilter to apply.

Returns:ModuleInfoList

The subset of the ModuleInfo objects in this list for which the given filter predicate is true.

io.github.classgraph back to summary

public Interface ModuleInfoList.ModuleInfoFilter

Annotations
@FunctionalInterface

Filter an ModuleInfoList using a predicate mapping an ModuleInfo object to a boolean, producing another ModuleInfoList for all items in the list for which the predicate is true.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.
accept
(ModuleInfo
The ModuleInfo item to filter.
moduleInfo
)

Whether or not to allow an ModuleInfo list item through the filter.

Method Detail

acceptback to summary
public boolean accept(ModuleInfo moduleInfo)

Whether or not to allow an ModuleInfo list item through the filter.

Parameters
moduleInfo:ModuleInfo

The ModuleInfo item to filter.

Returns:boolean

Whether or not to allow the item through the filter. If true, the item is copied to the output list; if false, it is excluded.