Class PathReferencesServiceImpl.HitIteratorImpl
- java.lang.Object
-
- com.composum.sling.core.service.impl.PathReferencesServiceImpl.HitIteratorImpl
-
- All Implemented Interfaces:
PathReferencesService.HitIterator,Iterator<PathReferencesService.Hit>
- Enclosing class:
- PathReferencesServiceImpl
protected static class PathReferencesServiceImpl.HitIteratorImpl extends Object implements PathReferencesService.HitIterator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classPathReferencesServiceImpl.HitIteratorImpl.IteratorHit
-
Field Summary
Fields Modifier and Type Field Description protected StringabsPathprotected PathReferencesServiceImpl.HitIteratorImpl.IteratorHitnextprotected PathReferencesService.Optionsoptionsprotected StringqueryStringprotected StringrelPathprotected Iterator<org.apache.sling.api.resource.Resource>searchResultprotected Throwablethrowable
-
Constructor Summary
Constructors Constructor Description HitIteratorImpl(@NotNull PathReferencesService.Options options, @NotNull String queryString, @NotNull String absPath, @NotNull String relPath, @NotNull Throwable throwable)HitIteratorImpl(@NotNull PathReferencesService.Options options, @NotNull String queryString, @NotNull String absPath, @NotNull String relPath, @NotNull Iterator<org.apache.sling.api.resource.Resource> searchResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull StringgetAbsPath()@NotNull StringgetQueryString()@NotNull StringgetRelPath()@Nullable ThrowablegetThrowable()booleanhasNext()protected @Nullable PathReferencesService.HitloadNext()@Nullable PathReferencesService.Hitnext()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Field Detail
-
options
protected final PathReferencesService.Options options
-
queryString
protected final String queryString
-
absPath
protected final String absPath
-
relPath
protected final String relPath
-
searchResult
protected final Iterator<org.apache.sling.api.resource.Resource> searchResult
-
throwable
protected final Throwable throwable
-
next
protected PathReferencesServiceImpl.HitIteratorImpl.IteratorHit next
-
-
Constructor Detail
-
HitIteratorImpl
public HitIteratorImpl(@NotNull @NotNull PathReferencesService.Options options, @NotNull @NotNull String queryString, @NotNull @NotNull String absPath, @NotNull @NotNull String relPath, @NotNull @NotNull Iterator<org.apache.sling.api.resource.Resource> searchResult)
-
HitIteratorImpl
public HitIteratorImpl(@NotNull @NotNull PathReferencesService.Options options, @NotNull @NotNull String queryString, @NotNull @NotNull String absPath, @NotNull @NotNull String relPath, @NotNull @NotNull Throwable throwable)
-
-
Method Detail
-
loadNext
@Nullable protected @Nullable PathReferencesService.Hit loadNext()
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<PathReferencesService.Hit>
-
next
@Nullable public @Nullable PathReferencesService.Hit next()
- Specified by:
nextin interfaceIterator<PathReferencesService.Hit>
-
getRelPath
@NotNull public @NotNull String getRelPath()
-
getAbsPath
@NotNull public @NotNull String getAbsPath()
-
getQueryString
@NotNull public @NotNull String getQueryString()
- Specified by:
getQueryStringin interfacePathReferencesService.HitIterator
-
getThrowable
@Nullable public @Nullable Throwable getThrowable()
- Specified by:
getThrowablein interfacePathReferencesService.HitIterator
-
-