Ejemplo n.º 1
0
        private static int Partition <T>(List <T> list, int low, int high) where T : IIntComparator
        {
            IIntComparator pivot = list[high];

            int i = (low - 1);

            for (int j = low; j <= high - 1; j++)
            {
                if (list[j].Value() < pivot.Value())
                {
                    i++;
                    Swap(list, i, j);
                }
            }

            Swap(list, i + 1, high);
            return(i + 1);
        }
Ejemplo n.º 2
0
		public virtual void SortIds(IIntComparator cmp)
		{
			throw new NotSupportedException();
		}
Ejemplo n.º 3
0
 public virtual void SortIds(IIntComparator cmp)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
 public override void SortIds(IIntComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.SortIds(cmp);
 }
Ejemplo n.º 5
0
		public virtual void SortIds(IIntComparator cmp)
		{
			throw new NotImplementedException();
		}
			public _ISortable4_88(IdListQueryResult _enclosing, IIntComparator cmp)
			{
				this._enclosing = _enclosing;
				this.cmp = cmp;
			}
		public override void SortIds(IIntComparator cmp)
		{
			Algorithms4.Sort(new _ISortable4_88(this, cmp));
		}
Ejemplo n.º 8
0
 public override void SortIds(IIntComparator cmp)
 {
     _delegate = _delegate.SupportSort();
     _delegate.SortIds(cmp);
 }
Ejemplo n.º 9
0
 public _ISortable4_88(IdListQueryResult _enclosing, IIntComparator cmp)
 {
     this._enclosing = _enclosing;
     this.cmp        = cmp;
 }
Ejemplo n.º 10
0
 public override void SortIds(IIntComparator cmp)
 {
     Algorithms4.Sort(new _ISortable4_88(this, cmp));
 }
 public virtual void SortIds(IIntComparator cmp)
 {
     throw new NotSupportedException();
 }