Package org.springframework.data.mapping
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
PersistentPropertyPath
s.- Since:
- 2.1
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the given path is contained in the currentPersistentPropertyPaths
.boolean
contains
(PropertyPath path) Returns whether the givenPropertyPath
is contained in the currentPersistentPropertyPaths
.dropPathIfSegmentMatches
(Predicate<? super P> predicate) DropsPersistentPropertyPath
s that contain a path segment matching the given predicate.getFirst()
Returns the firstPersistentPropertyPath
.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getFirst
Optional<PersistentPropertyPath<P>> getFirst()Returns the firstPersistentPropertyPath
.- Returns:
-
contains
Returns whether the given path is contained in the currentPersistentPropertyPaths
.- Parameters:
path
- must not be null.- Returns:
-
contains
Returns whether the givenPropertyPath
is contained in the currentPersistentPropertyPaths
.- Parameters:
path
- must not be null.- Returns:
-
dropPathIfSegmentMatches
DropsPersistentPropertyPath
s that contain a path segment matching the given predicate.- Parameters:
predicate
- must not be null.- Returns:
- a
PersistentPropertyPaths
instance with allPersistentPropertyPath
instances removed that contain path segments matching the given predicate. - Since:
- 2.1.4 / 2.2.2
-