mirror of
https://github.com/revanced/jadb.git
synced 2024-06-10 07:07:49 +02:00
a6dcb3ec38
It seems that only ints are passed in and out...
32 lines
867 B
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();
|
|
}
|
|
}
|