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

org.openpdf.renderer.function.postscript.operation.Ne Maven / Gradle / Ivy

The newest version!
package org.openpdf.renderer.function.postscript.operation;

import java.util.Stack;


final class Ne implements PostScriptOperation {
	@Override
	/**
	 * any1 any2 ne bool 

* * pops two objects from the operand stack and pushes false * if they are equal, or true if not. What it means for objects * to be equal is presented in the description of the * eq operator.

* * errors: invalidaccess, stackunderflow */ public void eval(Stack environment) { Object b = environment.pop(); Object a = environment.pop(); environment.push(!a.equals(b)); } }