jadb/src/se/vidstige/jadb/RemoteFile.java

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();
}
}