Package net.solarnetwork.node.backup
Class PrefixedBackupResourceIterator
java.lang.Object
net.solarnetwork.node.backup.PrefixedBackupResourceIterator
- All Implemented Interfaces:
Iterator<BackupResource>
An iterator of
BackupResource objects that adds a prefix to each
resource path.- Since:
- 1.46
- Version:
- 1.1
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionPrefixedBackupResourceIterator(Iterator<BackupResource> delegate, String prefix) Construct with a delegate iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
PrefixedBackupResourceIterator
Construct with a delegate iterator.- Parameters:
delegate- The delegate iterator.prefix- The prefix to add to eachBackupResource.getBackupPath().
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<BackupResource>
-
next
- Specified by:
nextin interfaceIterator<BackupResource>
-
remove
public void remove()- Specified by:
removein interfaceIterator<BackupResource>
-