Class Utilities


  • public class Utilities
    extends java.lang.Object
    Utility methods called by generated code.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Utilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static int compare​(boolean v0, boolean v1)  
      static int compare​(byte v0, byte v1)  
      static int compare​(char v0, char v1)  
      static int compare​(double v0, double v1)  
      static int compare​(float v0, float v1)  
      static int compare​(int v0, int v1)  
      static int compare​(long v0, long v1)  
      static int compare​(short v0, short v1)  
      static int compare​(java.lang.Comparable v0, java.lang.Comparable v1)  
      static int compare​(java.util.List v0, java.util.List v1)  
      private static int compare_​(java.lang.Object o0, java.lang.Object o1)  
      static int compareNullsFirst​(java.lang.Comparable v0, java.lang.Comparable v1)  
      static int compareNullsLast​(java.lang.Comparable v0, java.lang.Comparable v1)  
      static int compareNullsLast​(java.util.List v0, java.util.List v1)  
      static boolean equal​(java.lang.Object o0, java.lang.Object o1)
      Deprecated.
      Use Objects.equals(java.lang.Object, java.lang.Object).
      static int hash​(int h, boolean v)  
      static int hash​(int h, byte v)  
      static int hash​(int h, char v)  
      static int hash​(int h, double v)  
      static int hash​(int h, float v)  
      static int hash​(int h, int v)  
      static int hash​(int h, long v)  
      static int hash​(int h, short v)  
      static int hash​(int h, java.lang.Object v)  
      static int hash​(java.lang.Object v)  
      static int hashCode​(boolean v)
      Deprecated.
      Use Boolean.hashCode(boolean)
      static int hashCode​(double v)
      Deprecated.
      Use Double.hashCode(double)
      static int hashCode​(float v)
      Deprecated.
      Use Float.hashCode(float)
      static int hashCode​(long v)
      Deprecated.
      Use Long.hashCode(long)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utilities

        protected Utilities()
    • Method Detail

      • equal

        @Deprecated
        public static boolean equal​(java.lang.Object o0,
                                    java.lang.Object o1)
        Deprecated.
        Use Objects.equals(java.lang.Object, java.lang.Object).
      • hash

        public static int hash​(java.lang.Object v)
      • hashCode

        @Deprecated
        public static int hashCode​(double v)
        Deprecated.
        Use Double.hashCode(double)
        Computes the hash code of a double value. Equivalent to Double.hashCode(double), but that method was only introduced in JDK 1.8.
        Parameters:
        v - Value
        Returns:
        Hash code
      • hashCode

        @Deprecated
        public static int hashCode​(float v)
        Deprecated.
        Use Float.hashCode(float)
        Computes the hash code of a float value. Equivalent to Float.hashCode(float), but that method was only introduced in JDK 1.8.
        Parameters:
        v - Value
        Returns:
        Hash code
      • hashCode

        @Deprecated
        public static int hashCode​(long v)
        Deprecated.
        Use Long.hashCode(long)
        Computes the hash code of a long value. Equivalent to Long.hashCode(long), but that method was only introduced in JDK 1.8.
        Parameters:
        v - Value
        Returns:
        Hash code
      • hashCode

        @Deprecated
        public static int hashCode​(boolean v)
        Deprecated.
        Use Boolean.hashCode(boolean)
        Computes the hash code of a boolean value. Equivalent to Boolean.hashCode(boolean), but that method was only introduced in JDK 1.8.
        Parameters:
        v - Value
        Returns:
        Hash code
      • hash

        public static int hash​(int h,
                               boolean v)
      • hash

        public static int hash​(int h,
                               byte v)
      • hash

        public static int hash​(int h,
                               char v)
      • hash

        public static int hash​(int h,
                               short v)
      • hash

        public static int hash​(int h,
                               int v)
      • hash

        public static int hash​(int h,
                               long v)
      • hash

        public static int hash​(int h,
                               float v)
      • hash

        public static int hash​(int h,
                               double v)
      • hash

        public static int hash​(int h,
                               java.lang.Object v)
      • compare

        public static int compare​(boolean v0,
                                  boolean v1)
      • compare

        public static int compare​(byte v0,
                                  byte v1)
      • compare

        public static int compare​(char v0,
                                  char v1)
      • compare

        public static int compare​(short v0,
                                  short v1)
      • compare

        public static int compare​(int v0,
                                  int v1)
      • compare

        public static int compare​(long v0,
                                  long v1)
      • compare

        public static int compare​(float v0,
                                  float v1)
      • compare

        public static int compare​(double v0,
                                  double v1)
      • compare

        public static int compare​(java.util.List v0,
                                  java.util.List v1)
      • compare_

        private static int compare_​(java.lang.Object o0,
                                    java.lang.Object o1)
      • compare

        public static int compare​(java.lang.Comparable v0,
                                  java.lang.Comparable v1)
      • compareNullsFirst

        public static int compareNullsFirst​(java.lang.Comparable v0,
                                            java.lang.Comparable v1)
      • compareNullsLast

        public static int compareNullsLast​(java.lang.Comparable v0,
                                           java.lang.Comparable v1)
      • compareNullsLast

        public static int compareNullsLast​(java.util.List v0,
                                           java.util.List v1)