fix: remove PCloudIdCloudNode
interface
This commit is contained in:
parent
f7411ea286
commit
c1ca71be82
@ -19,12 +19,12 @@ class PCloudIdCache {
|
|||||||
return cache.get(path);
|
return cache.get(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
<T extends PCloudIdCloudNode> T cache(T value) {
|
<T extends PCloudNode> T cache(T value) {
|
||||||
add(value);
|
add(value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add(PCloudIdCloudNode node) {
|
public void add(PCloudNode node) {
|
||||||
add(node.getPath(), new NodeInfo(node));
|
add(node.getPath(), new NodeInfo(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class PCloudIdCache {
|
|||||||
cache.put(path, info);
|
cache.put(path, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove(PCloudIdCloudNode node) {
|
public void remove(PCloudNode node) {
|
||||||
remove(node.getPath());
|
remove(node.getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ class PCloudIdCache {
|
|||||||
private final Long id;
|
private final Long id;
|
||||||
private final boolean isFolder;
|
private final boolean isFolder;
|
||||||
|
|
||||||
private NodeInfo(PCloudIdCloudNode node) {
|
private NodeInfo(PCloudNode node) {
|
||||||
this(node.getId(), node instanceof CloudFolder);
|
this(node.getId(), node instanceof CloudFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
package org.cryptomator.data.cloud.pcloud;
|
|
||||||
|
|
||||||
import org.cryptomator.domain.CloudNode;
|
|
||||||
|
|
||||||
interface PCloudIdCloudNode extends CloudNode {
|
|
||||||
|
|
||||||
Long getId();
|
|
||||||
|
|
||||||
}
|
|
@ -1,8 +1,9 @@
|
|||||||
package org.cryptomator.data.cloud.pcloud;
|
package org.cryptomator.data.cloud.pcloud;
|
||||||
|
|
||||||
interface PCloudNode extends PCloudIdCloudNode {
|
import org.cryptomator.domain.CloudNode;
|
||||||
|
|
||||||
|
interface PCloudNode extends CloudNode {
|
||||||
|
|
||||||
@Override
|
|
||||||
Long getId();
|
Long getId();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user