Package io.hawt.util

Class Objects


  • public class Objects
    extends java.lang.Object
    Some helper methods - though could be replaced by JDK 1.7 code now in java.util.Objects whenever we are happy to ignore JDK 1.6
    • Constructor Summary

      Constructors 
      Constructor Description
      Objects()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int compare​(java.lang.Comparable a, java.lang.Comparable b)  
      static boolean equals​(java.lang.Object a, java.lang.Object b)  
      static java.lang.String getVersion​(java.lang.Class<?> aClass, java.lang.String groupId, java.lang.String artifactId)
      Returns the version of the given class's package or the group and artifact of the jar
      • Methods inherited from class java.lang.Object

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

      • Objects

        public Objects()
    • Method Detail

      • equals

        public static boolean equals​(java.lang.Object a,
                                     java.lang.Object b)
      • compare

        public static int compare​(java.lang.Comparable a,
                                  java.lang.Comparable b)
      • getVersion

        public static java.lang.String getVersion​(java.lang.Class<?> aClass,
                                                  java.lang.String groupId,
                                                  java.lang.String artifactId)
        Returns the version of the given class's package or the group and artifact of the jar