Debian Codegraph @

net/sf/saxon/expr/sort/ObjectToBeSorted.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.expr.sort;
9
10 import net.sf.saxon.value.AtomicValue;
11
12 /**
13 * This class represents a member of a sequence that is being sorted. The sequence may contain
14 * items, tuples, groups, or anything else. An instance of this class holds the object itself, the
15 * values of the sort keys, and the original position of the item in the input sequence (which is needed
16 * to achieve stable sorting.)
17 */
18 public class ObjectToBeSorted<T> {
19
20 public T value;
21 public AtomicValue[] sortKeyValues;
22 public int originalPosition;
23
24 public ObjectToBeSorted(int numberOfSortKeys) {
25 sortKeyValues = new AtomicValue[numberOfSortKeys];
26 }
27
28 }
29