Package net.openhft.jpsg

Examples of net.openhft.jpsg.Option


public final class AddValueWithDefault extends AddValue {

    @Override
    public void beginning() {
        String value = "defaultValue + addition";
        Option mvo = cxt.mapValueOption();
        if (mvo == BYTE || mvo == CHAR || mvo == SHORT) {
            value = "(" + cxt.valueType() + ") (" + value + ")";
        }
        gen.lines(cxt.valueType() + " value = " + value + ";");
    }
View Full Code Here


    }

    @Override
    public final void ifPresent() {
        String newValue = gen.value() + " + " + toAdd();
        Option mvo = cxt.mapValueOption();
        if (mvo == BYTE || mvo == CHAR || mvo == SHORT) {
            newValue = "(" + cxt.valueType() + ") (" + newValue + ")";
        }
        gen.lines(cxt.valueType() + " newValue = " + newValue + ";");
        gen.setValue("newValue");
View Full Code Here

TOP

Related Classes of net.openhft.jpsg.Option

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.