

package darks.orm.core.data.tags.express.impl;

public class EqualOper extends CompareOper
{

	public EqualOper()
	{
		super("EQUAL");
	}

	@Override
	public Boolean compute(String src, String desc)
	{
		if (src == null)
		{
			return desc == null;
		}
		else
		{
			return src.equals(desc);
		}
	}

	@Override
	public Boolean compute(int src, int desc)
	{
		return src == desc;
	}

	@Override
	public Boolean compute(long src, long desc)
	{
		return src == desc;
	}

	@Override
	public Boolean compute(Object src, Object desc)
	{
		if (src == null)
		{
			return desc == null;
		}
		else
		{
			return src.equals(desc);
		}
	}

}
