jadb/src/se/vidstige/jadb/RemoteFile.java
Jano Svitok a6dcb3ec38 Replace long with int in RemoteFile.getLastModified()
It seems that only ints are passed in and out...
2019-02-19 15:30:04 +01:00

32 lines
867 B
Java

package se.vidstige.jadb;
/**
* Created by vidstige on 2014-03-20
*/
public class RemoteFile {
private final String path;
public RemoteFile(String path) { this.path = path; }
public String getName() { throw new UnsupportedOperationException(); }
public int getSize() { throw new UnsupportedOperationException(); }
public int getLastModified() { throw new UnsupportedOperationException(); }
public boolean isDirectory() { throw new UnsupportedOperationException(); }
public String getPath() { return path;}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
RemoteFile that = (RemoteFile) o;
return path.equals(that.path);
}
@Override
public int hashCode() {
return path.hashCode();
}
}