Beispiel #1
0
            public int CompareTo(object target)
            {
                MappedIDPair targetIDPair = (MappedIDPair)target;
                int          targetID     = targetIDPair.Orig();

                return(sourceID == targetID ? 0 : (sourceID < targetID ? -1 : 1));
            }
Beispiel #2
0
        public virtual IPreparedComparison PrepareComparison(IContext context, object source
                                                             )
        {
            MappedIDPair sourceIDPair = (MappedIDPair)source;
            int          sourceID     = sourceIDPair.Orig();

            return(new _IPreparedComparison_50(sourceID));
        }
Beispiel #3
0
        public virtual void WriteIndexEntry(IContext context, ByteArrayBuffer reader, object
                                            obj)
        {
            MappedIDPair mappedIDs = (MappedIDPair)obj;

            _origHandler.WriteIndexEntry(context, reader, mappedIDs.Orig());
            _mappedHandler.WriteIndexEntry(context, reader, mappedIDs.Mapped());
        }