Refractor packages
This commit is contained in:
parent
463b0ccf35
commit
91b33a2baa
@ -1,5 +1,6 @@
|
||||
module org.warp.filesponge {
|
||||
exports org.warp.filesponge.api;
|
||||
exports org.warp.filesponge.value;
|
||||
requires lombok;
|
||||
requires org.jetbrains.annotations;
|
||||
}
|
@ -21,7 +21,7 @@ package org.warp.filesponge;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.warp.filesponge.api.FileSource;
|
||||
import org.warp.filesponge.api.MirrorURI;
|
||||
import org.warp.filesponge.value.MirrorURI;
|
||||
|
||||
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||
public abstract class BaseMirrorFileSource implements FileSource {
|
||||
|
@ -25,9 +25,9 @@ import lombok.EqualsAndHashCode;
|
||||
import lombok.ToString;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.warp.filesponge.api.FileAccessor;
|
||||
import org.warp.filesponge.api.FileContent;
|
||||
import org.warp.filesponge.api.FileStatus;
|
||||
import org.warp.filesponge.api.FileURI;
|
||||
import org.warp.filesponge.value.FileContent;
|
||||
import org.warp.filesponge.value.FileStatus;
|
||||
import org.warp.filesponge.value.FileURI;
|
||||
|
||||
/**
|
||||
* Prevent access to other methods via casting
|
||||
|
@ -21,6 +21,9 @@ package org.warp.filesponge.api;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.warp.filesponge.value.FileContent;
|
||||
import org.warp.filesponge.value.FileStatus;
|
||||
import org.warp.filesponge.value.FileURI;
|
||||
|
||||
/**
|
||||
* FileAccessor can be used to access files from the client side
|
||||
|
@ -21,6 +21,7 @@ package org.warp.filesponge.api;
|
||||
import java.time.Duration;
|
||||
import java.util.Optional;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.warp.filesponge.value.FileURI;
|
||||
|
||||
/**
|
||||
* FileActor sends signals to a mirror
|
||||
|
@ -20,6 +20,9 @@ package org.warp.filesponge.api;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.warp.filesponge.value.FileSourceAvailability;
|
||||
import org.warp.filesponge.value.FileType;
|
||||
import org.warp.filesponge.value.FileURI;
|
||||
|
||||
/**
|
||||
* FileSource receives responses from a mirror
|
||||
|
@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public enum FileAvailability {
|
||||
UNKNOWN,
|
@ -16,6 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public interface FileContent {}
|
@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public enum FileDataAvailability {
|
||||
UNAVAILABLE,
|
@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public enum FileSourceAvailability {
|
||||
DOWNLOADABLE,
|
@ -16,7 +16,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
import java.util.Optional;
|
||||
import lombok.Value;
|
@ -16,6 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public interface FileType {}
|
@ -16,6 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public interface FileURI {}
|
@ -16,6 +16,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package org.warp.filesponge.api;
|
||||
package org.warp.filesponge.value;
|
||||
|
||||
public interface MirrorURI {}
|
Loading…
Reference in New Issue
Block a user