com.pastdev.jsch.nio.file.UnixSshPathWatchEvent Maven / Gradle / Ivy
package com.pastdev.jsch.nio.file;
import java.nio.file.WatchEvent;
public class UnixSshPathWatchEvent implements WatchEvent {
private final WatchEvent.Kind kind;
private final T context;
private int count;
UnixSshPathWatchEvent( WatchEvent.Kind kind, T context ) {
this.kind = kind;
this.context = context;
this.count = 1;
}
@Override
public WatchEvent.Kind kind() {
return kind;
}
@Override
public int count() {
return count;
}
@Override
public T context() {
return context;
}
void increment() {
count++;
}
}