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

com.exigen.ie.constrainer.impl.IntSetEvent Maven / Gradle / Ivy

package com.exigen.ie.constrainer.impl;

import com.exigen.ie.constrainer.EventOfInterest;
import com.exigen.ie.constrainer.IntSetVar;
import com.exigen.ie.tools.Reusable;
import com.exigen.ie.tools.ReusableFactory;

/**
 * 

Title:

*

Description:

*

Copyright: Copyright (c) 2002

*

Company:

* @author unascribed * @version 1.0 */ public class IntSetEvent extends EventOfInterest{ static ReusableFactory _factory = new ReusableFactory(){ protected Reusable createNewElement(){ return new IntSetEvent(); } }; private IntSetVar _var; private int _val; private int _type; static IntSetEvent getEvent(IntSetVar var, int val, int type){ IntSetEvent ev = (IntSetEvent)_factory.getElement(); ev.init(var, val, type); return ev; } void init(IntSetVar var, int val, int type){ _var = var; _val = val; _type = type; } public int type(){ return _type; } public String name(){ return "IntSetEvent"; } public boolean isMaxEvent(){ return false; } public boolean isMinEvent(){ return false; } public boolean isValueEvent(){ return (_type & IntSetEventConstants.VALUE) != 0; } public boolean isRemoveEvent(){ return (_type & IntSetEventConstants.REMOVE) != 0; } public boolean isRequireEvent(){ return (_type & IntSetEventConstants.REQUIRE) != 0; } public interface IntSetEventConstants{ int REMOVE = 1; int REQUIRE = 2; int VALUE = 4; int ALL = 8; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy