Skip to content

Commit 4922845

Browse files
committed
Rename MountFeature to MountCapability
1 parent e4f475a commit 4922845

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/main/java/org/cryptomator/integrations/mount/Mount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface Mount extends AutoCloseable {
3030
* If supported, force-unmount the volume.
3131
*
3232
* @throws UnmountFailedException If the unmount was not successful.
33-
* @throws UnsupportedOperationException If {@link MountFeature#UNMOUNT_FORCED} is not supported
33+
* @throws UnsupportedOperationException If {@link MountCapability#UNMOUNT_FORCED} is not supported
3434
*/
3535
default void unmountForced() throws UnmountFailedException {
3636
throw new UnsupportedOperationException();

src/main/java/org/cryptomator/integrations/mount/MountBuilder.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public interface MountBuilder {
1818
*
1919
* @param hostName string conforming with the uri host part
2020
* @return <code>this</code>
21-
* @throws UnsupportedOperationException If {@link MountFeature#LOOPBACK_HOST_NAME} is not supported
21+
* @throws UnsupportedOperationException If {@link MountCapability#LOOPBACK_HOST_NAME} is not supported
2222
*/
2323
@Contract("_ -> this")
2424
default MountBuilder setLoopbackHostName(String hostName) {
@@ -30,7 +30,7 @@ default MountBuilder setLoopbackHostName(String hostName) {
3030
*
3131
* @param port Fixed TCP port or 0 to use a system-assigned port
3232
* @return <code>this</code>
33-
* @throws UnsupportedOperationException If {@link MountFeature#LOOPBACK_PORT} is not supported
33+
* @throws UnsupportedOperationException If {@link MountCapability#LOOPBACK_PORT} is not supported
3434
*/
3535
@Contract("_ -> this")
3636
default MountBuilder setLoopbackPort(@Range(from = 0, to = Short.MAX_VALUE) int port) {
@@ -40,7 +40,7 @@ default MountBuilder setLoopbackPort(@Range(from = 0, to = Short.MAX_VALUE) int
4040
/**
4141
* Sets the mount point.
4242
* <p>
43-
* Unless the mount provide supports {@link MountFeature#MOUNT_TO_SYSTEM_CHOSEN_PATH}, setting a mount point is required.
43+
* Unless the mount provide supports {@link MountCapability#MOUNT_TO_SYSTEM_CHOSEN_PATH}, setting a mount point is required.
4444
*
4545
* @param mountPoint Where to mount the volume
4646
* @return <code>this</code>
@@ -55,7 +55,7 @@ default MountBuilder setMountpoint(Path mountPoint) {
5555
*
5656
* @param mountFlags Mount flags
5757
* @return <code>this</code>
58-
* @throws UnsupportedOperationException If {@link MountFeature#MOUNT_FLAGS} is not supported
58+
* @throws UnsupportedOperationException If {@link MountCapability#MOUNT_FLAGS} is not supported
5959
* @see MountService#getDefaultMountFlags(String)
6060
*/
6161
@Contract("_ -> this")
@@ -69,7 +69,7 @@ default MountBuilder setMountFlags(String mountFlags) {
6969
*
7070
* @param mountReadOnly Whether to mount read-only.
7171
* @return <code>this</code>
72-
* @throws UnsupportedOperationException If {@link MountFeature#READ_ONLY} is not supported
72+
* @throws UnsupportedOperationException If {@link MountCapability#READ_ONLY} is not supported
7373
*/
7474
@Contract("_ -> this")
7575
default MountBuilder setReadOnly(boolean mountReadOnly) {
@@ -81,7 +81,7 @@ default MountBuilder setReadOnly(boolean mountReadOnly) {
8181
*
8282
* @param volumeId String conforming with the os-dependent path component restrictions
8383
* @return <code>this</code>
84-
* @throws UnsupportedOperationException If {@link MountFeature#VOLUME_ID} is not supported
84+
* @throws UnsupportedOperationException If {@link MountCapability#VOLUME_ID} is not supported
8585
*/
8686
@Contract("_ -> this")
8787
default MountBuilder setVolumeId(String volumeId) {

src/main/java/org/cryptomator/integrations/mount/MountFeature.java renamed to src/main/java/org/cryptomator/integrations/mount/MountCapability.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* <p>
88
* This may be used to show or hide different configuration options depending on the chosen mount provider.
99
*/
10-
public enum MountFeature {
10+
public enum MountCapability {
1111
/**
1212
* The builder supports {@link MountBuilder#setLoopbackHostName(String)}.
1313
*/

src/main/java/org/cryptomator/integrations/mount/MountService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static Stream<MountService> get() {
4444
*
4545
* @param mountName Name of the mount in the OS
4646
* @return Concatenated String of valid mount flags
47-
* @throws UnsupportedOperationException If {@link MountFeature#MOUNT_FLAGS} is not supported
47+
* @throws UnsupportedOperationException If {@link MountCapability#MOUNT_FLAGS} is not supported
4848
*/
4949
default String getDefaultMountFlags(String mountName) {
5050
throw new UnsupportedOperationException();
@@ -54,7 +54,7 @@ default String getDefaultMountFlags(String mountName) {
5454
* The default TCP port of the loopback address used by this provider.
5555
*
5656
* @return fixed TCP port or 0 to use a system-assigned port
57-
* @throws UnsupportedOperationException If {@link MountFeature#LOOPBACK_PORT} is not supported
57+
* @throws UnsupportedOperationException If {@link MountCapability#LOOPBACK_PORT} is not supported
5858
*/
5959
@Range(from = 0, to = Short.MAX_VALUE)
6060
default int getDefaultLoopbackPort() {
@@ -64,17 +64,17 @@ default int getDefaultLoopbackPort() {
6464
/**
6565
* Mount features supported by this provider.
6666
*
67-
* @return Set of supported {@link MountFeature}s
67+
* @return Set of supported {@link MountCapability}s
6868
*/
69-
Set<MountFeature> supportedFeatures();
69+
Set<MountCapability> supportedFeatures();
7070

7171
/**
7272
* Tests whether this provider supports the given feature.
7373
*
7474
* @param feature The feature
7575
* @return {@code true} if supported
7676
*/
77-
default boolean supportsFeature(MountFeature feature) {
77+
default boolean supportsFeature(MountCapability feature) {
7878
return supportedFeatures().contains(feature);
7979
}
8080

0 commit comments

Comments
 (0)