Package io.hawt.util
Class Objects
- java.lang.Object
-
- io.hawt.util.Objects
-
public class Objects extends 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 intcompare(Comparable a, Comparable b)static booleanequals(Object a, Object b)static StringgetVersion(Class<?> aClass, String groupId, String artifactId)Returns the version of the given class's package or the group and artifact of the jar
-
-
-
Method Detail
-
compare
public static int compare(Comparable a, Comparable b)
-
-