Package io.hawt.util
Class Objects
- java.lang.Object
-
- io.hawt.util.Objects
-
public class Objects extends java.lang.ObjectSome 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(java.lang.Comparable a, java.lang.Comparable b)static booleanequals(java.lang.Object a, java.lang.Object b)static java.lang.StringgetVersion(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
-
-
-
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
-
-