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 class
PathReferencesServiceImpl.HitIteratorImpl.IteratorHit
-
Field Summary
Fields Modifier and Type Field Description protected String
absPath
protected PathReferencesServiceImpl.HitIteratorImpl.IteratorHit
next
protected PathReferencesService.Options
options
protected String
queryString
protected String
relPath
protected Iterator<org.apache.sling.api.resource.Resource>
searchResult
protected Throwable
throwable
-
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 String
getAbsPath()
@NotNull String
getQueryString()
@NotNull String
getRelPath()
@Nullable Throwable
getThrowable()
boolean
hasNext()
protected @Nullable PathReferencesService.Hit
loadNext()
@Nullable PathReferencesService.Hit
next()
-
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:
hasNext
in interfaceIterator<PathReferencesService.Hit>
-
next
@Nullable public @Nullable PathReferencesService.Hit next()
- Specified by:
next
in interfaceIterator<PathReferencesService.Hit>
-
getRelPath
@NotNull public @NotNull String getRelPath()
-
getAbsPath
@NotNull public @NotNull String getAbsPath()
-
getQueryString
@NotNull public @NotNull String getQueryString()
- Specified by:
getQueryString
in interfacePathReferencesService.HitIterator
-
getThrowable
@Nullable public @Nullable Throwable getThrowable()
- Specified by:
getThrowable
in interfacePathReferencesService.HitIterator
-
-