JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.util

Class ComparableUtils



  • public class ComparableUtils
    extends Object 
    • Constructor Detail

      • ComparableUtils

        public ComparableUtils()
    • Method Detail

      • safeCompare

        public static <T> int safeCompare(Comparable<T> d1,
         T d2)
        Does a safe comparison of two Comparable objects accounting for nulls
        Parameters:
        d1 - First object
        d2 - Second object
        Returns:
        A positive number if the object double is larger, a negative number if the second object is larger, or 0 if they are equal. Null is considered less than any non-null value
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /