The list of methods to do SortedSet Usage are organized into topic(s).
String
concatStringList(SortedSet sortedDependencies) Concatenates a SortedSet of Strings with a semicolon between them.
String concatenatedString = "";
for (String s : sortedDependencies) {
concatenatedString = concatenatedString.concat(s + ";");
return concatenatedString;
T
findLT(SortedSet ss, T x) Finds the largest value that is smaller than x in a SortedSet
SortedSet<T> p = ss.headSet(x);
return p.isEmpty() ? null : p.last();
int
nextValue(SortedSet valueSet, int startValue) next Value
if (valueSet == null) {
return startValue;
if (valueSet.contains(startValue)) {
return startValue;
SortedSet<Integer> tailSet = valueSet.tailSet(startValue + 1);
if (tailSet.isEmpty()) {
...
boolean
sortedSetIsAssignableFrom(Class> aClass) Determines if the SortedSet interface is either the same as, or is a superinterface of, the class or interface represented by the specified Class parameter.
return SortedSet.class.isAssignableFrom(aClass);
double[]
toDoubleArray(final int[] intArray) to Double Array
final int length = intArray.length;
final double[] doubleArray = new double[length];
for (int i = 0; i < intArray.length; i++) {
doubleArray[i] = intArray[i];
return doubleArray;