upnpvaluerange.java

来自「国外的j2me播放器软件」· Java 代码 · 共 85 行

JAVA
85
字号
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 + =
减小字号Ctrl + -
显示快捷键?