Interface PersistentPropertyPaths<T, P extends PersistentProperty<P>>
- All Superinterfaces:
Iterable<PersistentPropertyPath<P>>, Streamable<PersistentPropertyPath<P>>, Supplier<Stream<PersistentPropertyPath<P>>>
public interface PersistentPropertyPaths<T, P extends PersistentProperty<P>>
extends Streamable<PersistentPropertyPath<P>>
A wrapper for a collection of
PersistentPropertyPaths.- Since:
- 2.1
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the given path is contained in the currentPersistentPropertyPaths.booleancontains(PropertyPath path) Returns whether the givenPropertyPathis contained in the currentPersistentPropertyPaths.dropPathIfSegmentMatches(Predicate<? super P> predicate) DropsPersistentPropertyPaths that contain a path segment matching the given predicate.getFirst()Returns the firstPersistentPropertyPath.Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
getFirst
-
contains
Returns whether the given path is contained in the currentPersistentPropertyPaths.- Parameters:
path- must not be null.- Returns:
-
contains
Returns whether the givenPropertyPathis contained in the currentPersistentPropertyPaths.- Parameters:
path- must not be null.- Returns:
-
dropPathIfSegmentMatches
DropsPersistentPropertyPaths that contain a path segment matching the given predicate.- Parameters:
predicate- must not be null.- Returns:
- a
PersistentPropertyPathsinstance with allPersistentPropertyPathinstances removed that contain path segments matching the given predicate. - Since:
- 2.1.4 / 2.2.2
-