/// <summary> /// Check if the current entry of both iterators has the same id. /// <para /> /// This method is faster than <see cref="getEntryObjectId()"/>as it does not /// require copying the bytes out of the buffers. A direct <see cref="idBuffer"/> /// compare operation is performed. /// </summary> /// <param name="otherIterator">the other iterator to test against.</param> /// <returns> /// true if both iterators have the same object id; false otherwise. /// </returns> public virtual bool idEqual(AbstractTreeIterator otherIterator) { if (otherIterator == null) { throw new ArgumentNullException("otherIterator"); } return(ObjectId.Equals(idBuffer(), idOffset(), otherIterator.idBuffer(), otherIterator.idOffset())); }
/// <summary> /// Check if the current entry of both iterators has the same id. /// <para /> /// This method is faster than <see cref="getEntryObjectId()"/>as it does not /// require copying the bytes out of the buffers. A direct <see cref="idBuffer"/> /// compare operation is performed. /// </summary> /// <param name="otherIterator">the other iterator to test against.</param> /// <returns> /// true if both iterators have the same object id; false otherwise. /// </returns> public virtual bool idEqual(AbstractTreeIterator otherIterator) { return(ObjectId.Equals(idBuffer(), idOffset(), otherIterator.idBuffer(), otherIterator.idOffset())); }
/// <summary> /// Check if the current entry of both iterators has the same id. /// <para /> /// This method is faster than <see cref="getEntryObjectId()"/>as it does not /// require copying the bytes out of the buffers. A direct <see cref="idBuffer"/> /// compare operation is performed. /// </summary> /// <param name="otherIterator">the other iterator to test against.</param> /// <returns> /// true if both iterators have the same object id; false otherwise. /// </returns> public virtual bool idEqual(AbstractTreeIterator otherIterator) { if (otherIterator == null) throw new ArgumentNullException ("otherIterator"); return ObjectId.Equals(idBuffer(), idOffset(), otherIterator.idBuffer(), otherIterator.idOffset()); }
/// <summary> /// Check if the current entry of both iterators has the same id. /// <para /> /// This method is faster than <see cref="getEntryObjectId()"/>as it does not /// require copying the bytes out of the buffers. A direct <see cref="idBuffer"/> /// compare operation is performed. /// </summary> /// <param name="otherIterator">the other iterator to test against.</param> /// <returns> /// true if both iterators have the same object id; false otherwise. /// </returns> public virtual bool idEqual(AbstractTreeIterator otherIterator) { return ObjectId.Equals(idBuffer(), idOffset(), otherIterator.idBuffer(), otherIterator.idOffset()); }