Top Description Inners Fields Constructors Methods
io.github.classgraph

public Class PackageInfoList

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

A list of PackageInfo objects.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
PackageInfoList.PackageInfoFilter

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

Field Summary

Modifier and TypeField and Description
pack-priv static final PackageInfoList
EMPTY_LIST

An unmodifiable PackageInfoList.

private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
PackageInfoList()

Constructor.

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

Constructor.

pack-priv
PackageInfoList(final Collection<PackageInfo>
the package info collection
packageInfoCollection
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public PackageInfoList

Returns:

The subset of the PackageInfo objects in this list for which the given filter predicate is true.
filter
(final PackageInfoList.PackageInfoFilter
The PackageInfoFilter to apply.
filter
)

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

Inherited from io.github.classgraph.MappableInfoList:
asMapcontainsNameget

Field Detail

EMPTY_LISTback to summary
pack-priv static final PackageInfoList EMPTY_LIST

An unmodifiable PackageInfoList.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides io.github.classgraph.MappableInfoList.serialVersionUID.

serialVersionUID

Constructor Detail

PackageInfoListback to summary
pack-priv PackageInfoList()

Constructor.

PackageInfoListback to summary
pack-priv PackageInfoList(final int sizeHint)

Constructor.

Parameters
sizeHint:int

the size hint

PackageInfoListback to summary
pack-priv PackageInfoList(final Collection<PackageInfo> packageInfoCollection)

Constructor.

Parameters
packageInfoCollection:Collection<PackageInfo>

the package info collection

Method Detail

filterback to summary
public PackageInfoList filter(final PackageInfoList.PackageInfoFilter filter)

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

Parameters
filter:PackageInfoList.PackageInfoFilter

The PackageInfoFilter to apply.

Returns:PackageInfoList

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

io.github.classgraph back to summary

public Interface PackageInfoList.PackageInfoFilter

Annotations
@FunctionalInterface

Filter an PackageInfoList using a predicate mapping an PackageInfo object to a boolean, producing another PackageInfoList 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
(PackageInfo
The PackageInfo item to filter.
packageInfo
)

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

Method Detail

acceptback to summary
public boolean accept(PackageInfo packageInfo)

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

Parameters
packageInfo:PackageInfo

The PackageInfo 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.