All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fitbur.github.dockerjava.api.model.AccessMode Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.fitbur.github.dockerjava.api.model;

/**
 * The access mode of a file system or file: read-write or read-only.
 */
public enum AccessMode {
    /** read-write */
    rw,

    /** read-only */
    ro;

    /**
     * The com.fitburfault {@link AccessMode}: {@link #rw}
     */
    public static final AccessMode DEFAULT = rw;

    public static final AccessMode fromBoolean(boolean accessMode) {
        return accessMode ? rw : ro;
    }

    public final boolean toBoolean() {
        return this.equals(AccessMode.rw) ? true : false;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy