projects
/
jFCPlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbd390e
)
Rename Lengthed interface to WithLength
author
David ‘Bombe’ Roden
<bombe@freenetproject.org>
Fri, 10 Jul 2015 05:19:24 +0000
(07:19 +0200)
committer
David ‘Bombe’ Roden
<bombe@freenetproject.org>
Fri, 10 Jul 2015 05:19:24 +0000
(07:19 +0200)
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommandImpl.java
patch
|
blob
|
history
src/main/java/net/pterodactylus/fcp/quelaton/Lengthed.java
[deleted file]
patch
|
blob
|
history
src/main/java/net/pterodactylus/fcp/quelaton/WithLength.java
[new file with mode: 0644]
patch
|
blob
diff --git
a/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java
b/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java
index
bb6e099
..
53eccef
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java
+++ b/
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommand.java
@@
-16,6
+16,6
@@
public interface ClientPutCommand {
ClientPutCommand named(String targetFilename);
WithUri<Optional<Key>> redirectTo(String uri);
WithUri<Optional<Key>> from(File file);
ClientPutCommand named(String targetFilename);
WithUri<Optional<Key>> redirectTo(String uri);
WithUri<Optional<Key>> from(File file);
-
Lengthed
<WithUri<Optional<Key>>> from(InputStream inputStream);
+
WithLength
<WithUri<Optional<Key>>> from(InputStream inputStream);
}
}
diff --git
a/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommandImpl.java
b/src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommandImpl.java
index
d401f8d
..
44850af
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommandImpl.java
+++ b/
src/main/java/net/pterodactylus/fcp/quelaton/ClientPutCommandImpl.java
@@
-66,7
+66,7
@@
class ClientPutCommandImpl implements ClientPutCommand {
}
@Override
}
@Override
- public
Lengthed
<WithUri<Optional<Key>>> from(InputStream inputStream) {
+ public
WithLength
<WithUri<Optional<Key>>> from(InputStream inputStream) {
payload.set(Objects.requireNonNull(inputStream, "inputStream must not be null"));
return this::length;
}
payload.set(Objects.requireNonNull(inputStream, "inputStream must not be null"));
return this::length;
}
diff --git
a/src/main/java/net/pterodactylus/fcp/quelaton/Lengthed.java
b/src/main/java/net/pterodactylus/fcp/quelaton/Lengthed.java
deleted file mode 100644
(file)
index
e55b197
..0000000
--- a/
src/main/java/net/pterodactylus/fcp/quelaton/Lengthed.java
+++ /dev/null
@@
-1,14
+0,0 @@
-package net.pterodactylus.fcp.quelaton;
-
-/**
- * An intermediary interface for FCP commands that require a length parameter.
- *
- * @param <R>
- * The type of the next command part
- * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
- */
-public interface Lengthed<R> {
-
- R length(long length);
-
-}
diff --git a/src/main/java/net/pterodactylus/fcp/quelaton/WithLength.java
b/src/main/java/net/pterodactylus/fcp/quelaton/WithLength.java
new file mode 100644
(file)
index 0000000..
8d38bf3
--- /dev/null
+++ b/
src/main/java/net/pterodactylus/fcp/quelaton/WithLength.java
@@ -0,0
+1,14
@@
+package net.pterodactylus.fcp.quelaton;
+
+/**
+ * An intermediary interface for FCP commands that require a length parameter.
+ *
+ * @param <R>
+ * The type of the next command part
+ * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
+ */
+public interface WithLength<R> {
+
+ R length(long length);
+
+}