Structural Comparator for JAVA