/** * Constructor. * @param set_bits integer representation of the bits which are set * @param value_bits integer representation of the value bits */ public APMonom(int set_bits, int value_bits) { //added by ly bits_set = new SimpleBitSet(); bits_value = new SimpleBitSet(); bits_set.set(set_bits); bits_value.set(value_bits); }
/** * Constructor. */ public APMonom() { //added by ly bits_set = new SimpleBitSet(); bits_value = new SimpleBitSet(); //APMonmType = APMonmType.TRUE; bits_set.set(0); bits_value.set(0); }
/// <summary> /// 将当前的修改标识填充到toBitSet�? /// </summary> /// <param name="toBitSet"> </param> /// <returns> false,如果当前的属性没有修�?true,当前的属性有修改,并且已经将对应的值设置到toBitSet�? </returns> //JAVA TO C# CONVERTER WARNING: 'final' parameters are not allowed in .NET: //ORIGINAL LINE: public boolean fillChangedBit(final SimpleBitSet toBitSet) public virtual bool fillChangedBit(SimpleBitSet toBitSet) { if (this.bitSet.Empty) { return false; } else { toBitSet.or(this.bitSet); return true; } }
public override void CopyHolderWaitListsInto(SimpleBitSet waitList) { foreach (AtomicReferenceArray <ForsetiClient> holders in _clientsHoldingThisLock) { for (int j = 0; holders != null && j < holders.length(); j++) { ForsetiClient client = holders.get(j); if (client != null) { client.CopyWaitListTo(waitList); } } } }
public override void CopyHolderWaitListsInto(SimpleBitSet waitList) { _owner.copyWaitListTo(waitList); }
/** Copy constructor */ public APElement(SimpleBitSet sbs) : base(sbs.bitset) { }
internal virtual void CopyWaitListTo(SimpleBitSet other) { other.Put(_waitList); }
public AbstractProperty(int bitSize) { this.bitSet = new SimpleBitSet(bitSize); }