Package | Description |
---|---|
org.openjdk.jmc.common.collection | |
org.openjdk.jmc.common.item |
This package contains the
IItem data model. |
org.openjdk.jmc.common.util | |
org.openjdk.jmc.flightrecorder.rules.tree |
Modifier and Type | Method and Description |
---|---|
static <T> Iterator<T> |
IteratorToolkit.filter(Iterator<T> itr,
IPredicate<? super T> filter)
Wrap an iterator in a new iterator that filters out values based on a predicate.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IPredicate<IItem> |
ItemFilters.AttributeValue.getPredicate(IMemberAccessor<? extends M,IItem> accessor,
M value) |
protected IPredicate<IItem> |
ItemFilters.Matches.getPredicate(IMemberAccessor<? extends String,IItem> accessor,
String regexp) |
protected IPredicate<IItem> |
ItemFilters.NotMatches.getPredicate(IMemberAccessor<? extends String,IItem> accessor,
String regexp) |
protected IPredicate<IItem> |
ItemFilters.Contains.getPredicate(IMemberAccessor<? extends String,IItem> accessor,
String substring) |
protected IPredicate<IItem> |
ItemFilters.NotContains.getPredicate(IMemberAccessor<? extends String,IItem> accessor,
String substring) |
IPredicate<IItem> |
ItemFilters.Not.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.Composite.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.Types.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.Type.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.TypeMatches.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.AttributeValue.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.HasAttribute.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.NotHasAttribute.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
ItemFilters.BooleanFilter.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
IItemFilter.getPredicate(IType<IItem> type) |
Modifier and Type | Method and Description |
---|---|
IItemIterable |
IItemIterable.apply(IPredicate<IItem> predicate)
Creates a new item iterable with all items in this iterable that pass through the filter.
|
static <K,C extends IItemConsumer<C>> |
GroupingAggregator.build(String name,
String description,
IAccessorFactory<K> keyField,
IItemConsumerFactory<C> groupAggregator,
IPredicate<IType<IItem>> acceptType) |
static <V,K,C extends IItemConsumer<C>> |
GroupingAggregator.build(String name,
String description,
IAccessorFactory<K> keyField,
IItemConsumerFactory<C> groupAggregator,
IPredicate<IType<IItem>> acceptType,
GroupingAggregator.IGroupsFinisher<V,K,C> finisher) |
static <C extends IItemConsumer<C>> |
Aggregators.forConsumer(IItemConsumerFactory<C> consumerFactory,
IPredicate<IType<IItem>> acceptType) |
Modifier and Type | Method and Description |
---|---|
static <T> IPredicate<T> |
PredicateToolkit.and(Collection<IPredicate<T>> predicates)
Combine a collection of predicates using an AND operation.
|
static <T,M extends Comparable<? super M>> |
PredicateToolkit.centerContained(IMemberAccessor<? extends IRange<M>,T> rangeAccessor,
IRange<M> limit)
Return a predicate based on
limit according to
RangeMatchPolicy.CENTER_CONTAINED_IN_RIGHT_OPEN . |
static <T> IPredicate<T> |
PredicateToolkit.contains(IMemberAccessor<? extends String,T> valueAccessor,
String substring)
Create a predicate that checks if a string value contains a specified substring.
|
static <T> IPredicate<T> |
PredicateToolkit.equals(IMemberAccessor<?,T> valueAccessor,
Object item)
Create a predicate that checks if a value is equal to a specified object.
|
static <T> IPredicate<T> |
PredicateToolkit.falsePredicate() |
static <T> IPredicate<T> |
PredicateToolkit.is(T item)
Create a predicate that checks if a value is a specified object.
|
static <T,M> IPredicate<T> |
PredicateToolkit.less(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit)
Create a predicate that compares values to a limit.
|
static <T,M> IPredicate<T> |
PredicateToolkit.less(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit,
boolean orEqual)
Create a predicate that compares values to a limit.
|
static <T,M> IPredicate<T> |
PredicateToolkit.lessOrEqual(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit)
Create a predicate that compares values to a limit.
|
static <T> IPredicate<T> |
PredicateToolkit.matches(IMemberAccessor<? extends String,T> valueAccessor,
String regexp)
Create a predicate that checks if a string value matches a regular expression.
|
static <T,M> IPredicate<T> |
PredicateToolkit.memberOf(IMemberAccessor<? extends M,T> valueAccessor,
Set<? extends M> items)
Create a predicate that checks if a value is included in a specified set.
|
static <T,M> IPredicate<T> |
PredicateToolkit.more(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit)
Create a predicate that compares values to a limit.
|
static <T,M> IPredicate<T> |
PredicateToolkit.more(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit,
boolean orEqual)
Create a predicate that compares values to a limit.
|
static <T,M> IPredicate<T> |
PredicateToolkit.moreOrEqual(IMemberAccessor<? extends M,T> valueAccessor,
Comparable<? super M> limit)
Create a predicate that compares values to a limit.
|
static <T> IPredicate<T> |
PredicateToolkit.not(IPredicate<T> predicate)
Invert a predicate.
|
static <T> IPredicate<T> |
PredicateToolkit.notEquals(IMemberAccessor<?,T> valueAccessor,
Object item)
Create a predicate that checks if a value is not equal to a specified object.
|
static <T> IPredicate<T> |
PredicateToolkit.or(Collection<IPredicate<T>> predicates)
Combine a collection of predicates using an OR operation.
|
static <T,M extends Comparable<? super M>> |
PredicateToolkit.rangeContained(IMemberAccessor<? extends IRange<M>,T> rangeAccessor,
IRange<M> limit)
Return a predicate based on
limit according to
RangeMatchPolicy.CONTAINED_IN_CLOSED . |
static <T,M extends Comparable<? super M>> |
PredicateToolkit.rangeIntersects(IMemberAccessor<? extends IRange<M>,T> rangeAccessor,
IRange<M> limit)
Return a predicate based on
limit according to
RangeMatchPolicy.CLOSED_INTERSECTS_WITH_CLOSED . |
static <T> IPredicate<T> |
PredicateToolkit.truePredicate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
PredicateToolkit.isFalseGuaranteed(IPredicate<?> p)
Test if a predicate is guaranteed to always evaluate to
false . |
static boolean |
PredicateToolkit.isTrueGuaranteed(IPredicate<?> p)
Test if a predicate is guaranteed to always evaluate to
true . |
static <T> IPredicate<T> |
PredicateToolkit.not(IPredicate<T> predicate)
Invert a predicate.
|
Modifier and Type | Method and Description |
---|---|
static <T> IPredicate<T> |
PredicateToolkit.and(Collection<IPredicate<T>> predicates)
Combine a collection of predicates using an AND operation.
|
static <T> IPredicate<T> |
PredicateToolkit.or(Collection<IPredicate<T>> predicates)
Combine a collection of predicates using an OR operation.
|
Modifier and Type | Method and Description |
---|---|
IPredicate<IItem> |
TimeRangeThreadFilter.getPredicate(IType<IItem> type) |
IPredicate<IItem> |
TimeRangeFilter.getPredicate(IType<IItem> type) |
Copyright © 2019. All rights reserved.