/FileExtraction/Java_unseen/PowerExplorer_PowerFileExplorer/PowerFileExplorer/src/main/java/org/magiclen/magiccommand/Version.java
/*
 *
 * Copyright 2015-2017 magiclen.org
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package org.magiclen.magiccommand;

/**
 * MagicCommand的版本。
 *
 * @author Magic Len
 */
public final class Version {

    /**
     * 主版本號碼。當程式架構有了重大改變，將會調整這項數值。
     */
    public static final int MAJOR = 1;
    /**
     * 副版本號碼。當程式新增了功能，將會調整這項數值。
     */
    public static final int MINOR = 2;
    /**
     * 維護版本號碼。當程式優化或是修正了一些問題，將會調整這項數值。
     */
    public static final int MAINTENANCE = 0;

    /**
     * 私有的建構子，將無法被實體化。
     */
    private Version() {

    }

    /**
     * 取得版本字串。
     *
     * @return 傳回版本字串
     */
    public static String getVersion() {
	return String.format("%d.%d.%d", MAJOR, MINOR, MAINTENANCE);
    }
}
