Java SortedSet Usage firstOrNull(SortedSet set)

Here you can find the source of firstOrNull(SortedSet set)

Description

first Or Null

License

Apache License

Declaration

public static <T> T firstOrNull(SortedSet<T> set) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.SortedSet;

public class Main {
    public static <T> T firstOrNull(SortedSet<T> set) {
        if (set == null || set.isEmpty()) {
            return null;
        }/* w w w.ja va2  s . co m*/
        return set.first();
    }
}

Related

  1. concatStringList(SortedSet sortedDependencies)
  2. findLT(SortedSet ss, T x)
  3. findPositionFor(final T item, final SortedSet values)
  4. nextValue(SortedSet valueSet, int startValue)
  5. sortedSetIsAssignableFrom(Class aClass)
  6. sortedSetOf(final Object obj, final Class castTo)
  7. toDoubleArray(final int[] intArray)