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

org.nutz.el.opt.bit.BitOr Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.el.opt.bit;

import org.nutz.el.opt.TwoTernary;

/**
 * 或
 * @author juqkai([email protected])
 *
 */
public class BitOr extends TwoTernary{
	public int fetchPriority() {
		return 10;
	}
	public Object calculate() {
		Integer lval = (Integer) calculateItem(left);
		Integer rval = (Integer) calculateItem(right);
		return lval | rval;
	}
	public String fetchSelf() {
		return "|";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy