⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 upnpvaluerange.java

📁 国外的j2me播放器软件
💻 JAVA
字号:
package no.auc.one.portableplayer.communication.upnphosting;

/**
 * Defines bounds for legal numeric values; defines resolution for numeric 
 * values.
 *
 * Minimum: Inclusive lower bound. Defined by a UPnP Forum working committee or
 * delegated to UPnP vendor. Single numeric value.
 *
 * Maximum: Inclusive upper bound. Defined by a UPnP Forum working committee or
 * delegated to UPnP vendor. Single numeric value.
 *
 * Stepping: Size of an increment operation, i.e., value of s in the operation 
 * v = v + s. Defined by a UPnP Forum working committee or delegated to UPnP 
 * vendor.
 */
public final class UPnPValueRange {
    private Object minimum;

    private Object maximum;

    private Object step;

    /**
     * Creates a new value range with the specified minimum and maximum values.
     * Step will be set to null.
     */
    public UPnPValueRange(Object min, Object max) {
        minimum = min;
        maximum = max;
        step = null;
    }

    /**
     * Creates a new value range with specified values.
     */
    public UPnPValueRange(Object min, Object max, Object step) {
        minimum = min;
        maximum = max;
        this.step = step;
    }
    
    /**
     * Returns the current minimum value.
     */
    public Object getMinimum() {
        return minimum;
    }

    /**
     * Change the minimum value.
     */
    public void setMinimum(Object newMinimum) {
        minimum = newMinimum;
    }

    /**
     * Returns the current maximum value.
     */
    public Object getMaximum() {
        return maximum;
    }

    /**
     * Change the maximum value.
     */
    public void setMaximum(Object newMaximum) {
        maximum = newMaximum;
    }

    /**
     * Returns the current stepping value.
     */
    public Object getStep() {
        return step;
    }

    /**
     * Change the stepping value.
     */
    public void setStep(Object newStep) {
        step = newStep;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -