fix: remove PCloudIdCloudNode interface

This commit is contained in:
Manuel Jenny 2021-03-17 17:37:02 +01:00
parent f7411ea286
commit c1ca71be82
No known key found for this signature in database
GPG Key ID: 1C80FE62B2BEAA18
3 changed files with 7 additions and 15 deletions

View File

@ -19,12 +19,12 @@ class PCloudIdCache {
return cache.get(path);
}
<T extends PCloudIdCloudNode> T cache(T value) {
<T extends PCloudNode> T cache(T value) {
add(value);
return value;
}
public void add(PCloudIdCloudNode node) {
public void add(PCloudNode node) {
add(node.getPath(), new NodeInfo(node));
}
@ -32,7 +32,7 @@ class PCloudIdCache {
cache.put(path, info);
}
public void remove(PCloudIdCloudNode node) {
public void remove(PCloudNode node) {
remove(node.getPath());
}
@ -55,7 +55,7 @@ class PCloudIdCache {
private final Long id;
private final boolean isFolder;
private NodeInfo(PCloudIdCloudNode node) {
private NodeInfo(PCloudNode node) {
this(node.getId(), node instanceof CloudFolder);
}

View File

@ -1,9 +0,0 @@
package org.cryptomator.data.cloud.pcloud;
import org.cryptomator.domain.CloudNode;
interface PCloudIdCloudNode extends CloudNode {
Long getId();
}

View File

@ -1,8 +1,9 @@
package org.cryptomator.data.cloud.pcloud;
interface PCloudNode extends PCloudIdCloudNode {
import org.cryptomator.domain.CloudNode;
interface PCloudNode extends CloudNode {
@Override
Long getId();
@Override