Package lcmc.common.domain

Examples of lcmc.common.domain.Unit


    public static Unit getUnitTiBytes() {
        return new Unit("T", "T", "TiByte", "TiBytes");
    }

    public static Unit getUnitPiBytes() {
        return new Unit("P", "P", "PiByte", "PiBytes");
    }
View Full Code Here


            return -1;
        }
        final String numS = value.getValueForConfig();
        if (Tools.isNumber(numS)) {
            long num = Long.parseLong(numS);
            final Unit unitObject = value.getUnit();
            if (unitObject == null) {
                return -1;
            }
            final String unit = unitObject.getShortName();
            if ("P".equalsIgnoreCase(unit)) {
                num = num * 1024 * 1024 * 1024 * 1024;
            } else if ("T".equalsIgnoreCase(unit)) {
                num = num * 1024 * 1024 * 1024;
            } else if ("G".equalsIgnoreCase(unit)) {
View Full Code Here

/** LVM dialogs. */
class LV extends WizardDialog {
    protected static Unit[] getUnits() {
        return new Unit[]{
            new Unit("K", "K", "KiByte", "KiBytes"),
                     new Unit("M", "M", "MiByte", "MiBytes"),
                     new Unit("G""G""GiByte",      "GiBytes"),
                     new Unit("T""T""TiByte",      "TiBytes")
        };
    }
View Full Code Here

    @Inject
    private WidgetFactory widgetFactory;

    protected static Unit[] getUnits() {
        return new Unit[]{
                   new Unit("s", "s", "second", "seconds"),
                   new Unit("m", "m", "minute", "minutes"),
                   new Unit("h", "h", "hour",   "hours"),
                   new Unit("d", "d", "day",    "days")
       };
    }
View Full Code Here

TOP

Related Classes of lcmc.common.domain.Unit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.