All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.vutbr.web.csskit.TermIntegerImpl Maven / Gradle / Ivy

package cz.vutbr.web.csskit;

import cz.vutbr.web.css.TermInteger;

public class TermIntegerImpl extends TermLengthImpl implements TermInteger {

	protected TermIntegerImpl() {
	    setUnit(Unit.none);
	}

    public int getIntValue() {
        return getValue().intValue();
    }

    public TermInteger setValue(int value) {
        setValue(Float.valueOf(value));
        return this;
    }

    @Override
    public String toString()
    {
        if (operator != null)
            return operator.value() + getIntValue();
        return String.valueOf(getIntValue());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy