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

org.bsc.mojo.configuration.ScrollVersionsInfo Maven / Gradle / Ivy

Go to download

plugin that document a project (using maven site style) and send result to a live confluence site [http://www.atlassian.com/software/confluence/]

There is a newer version: 8.0-beta1
Show newest version
package org.bsc.mojo.configuration;


import java.util.Objects;
import java.util.Optional;

import static java.util.Optional.ofNullable;

public class ScrollVersionsInfo {

    private String version = null;
    private boolean skip = false;


    public boolean isSkip() {
        return skip;
    }

    public void setSkip(boolean skip) {
        this.skip = skip;
    }

    public String getVersion() {
        Objects.requireNonNull( "version is not set!");
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Optional optVersion() {
        return (skip) ? Optional.empty() : ofNullable(version);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy