APIdia Launch Partner
Top Description Constructors Methods
jdk.jfr.internal.tool

public Class Filters

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, .List, .Map, java.util.function.Function, .Predicate, jdk.jfr.EventType, jdk.jfr.consumer.RecordedThread, .RecordedEvent, jdk.jfr.internal.util.UserSyntaxException, .Matcher

Helper class for creating filters.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
acronymify(String multipleWords)

private static final <T, X> Predicate<T>
createCache(final Predicate<T> filter, Function<T, X> cacheFunction)

pack-priv static Predicate<EventType>
pack-priv static Predicate<EventType>
pack-priv static Predicate<RecordedThread>
private static List<String>
pack-priv static Predicate<RecordedEvent>
pack-priv static Predicate<RecordedEvent>
public static <T> Predicate<T>
matchAll(List<Predicate<T>> filters)

private static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Filtersback to summary
public Filters()

Method Detail

acronymifyback to summary
private static String acronymify(String multipleWords)
createCacheback to summary
private static final <T, X> Predicate<T> createCache(final Predicate<T> filter, Function<T, X> cacheFunction)
createCategoryFilterback to summary
pack-priv static Predicate<EventType> createCategoryFilter(String filterText, List<EventType> types) throws UserSyntaxException
createEventTypeFilterback to summary
pack-priv static Predicate<EventType> createEventTypeFilter(String filterText, List<EventType> types) throws UserSyntaxException
createThreadFilterback to summary
pack-priv static Predicate<RecordedThread> createThreadFilter(String filterText) throws UserSyntaxException
explodeFilterback to summary
private static List<String> explodeFilter(String filter) throws UserSyntaxException
fromEventTypeback to summary
pack-priv static Predicate<RecordedEvent> fromEventType(Predicate<EventType> filter)
fromRecordedThreadback to summary
pack-priv static Predicate<RecordedEvent> fromRecordedThread(Predicate<RecordedThread> filter)
matchAllback to summary
public static <T> Predicate<T> matchAll(List<Predicate<T>> filters)
unknownEventTypeback to summary
private static boolean unknownEventType(Predicate<EventType> f, List<EventType> types)