com.github.marschall.memoryfilesystem.ModificationWatchEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of memoryfilesystem Show documentation
Show all versions of memoryfilesystem Show documentation
An in memory implementation of a JSR-203 file system.
The newest version!
package com.github.marschall.memoryfilesystem;
import java.nio.file.Path;
import java.nio.file.StandardWatchEventKinds;
final class ModificationWatchEvent extends PathWatchEvent {
private final int count;
ModificationWatchEvent(Path path, int count) {
super(path);
this.count = count;
}
@Override
public Kind kind() {
return StandardWatchEventKinds.ENTRY_MODIFY;
}
@Override
public int count() {
return this.count;
}
}