public static boolean isSameVersion(Class<? extends Stage> a, Class<? extends Stage> b) {
    StageDef aDef = a.getAnnotation(StageDef.class);
    StageDef bDef = b.getAnnotation(StageDef.class);

    return aDef.version() == bDef.version();
  }
public static boolean isSameVersion(Class<? extends Stage> a, Class<? extends Stage> b) {
    StageDef aDef = a.getAnnotation(StageDef.class);
    StageDef bDef = b.getAnnotation(StageDef.class);

    return aDef.version() == bDef.version();
  }
public static boolean isSameVersion ( Class < ? extends Stage > a , Class < ? extends Stage > b ) { StageDef aDef = a . getAnnotation ( StageDef . class ) ; StageDef bDef = b . getAnnotation ( StageDef . class ) ; return aDef . version ( ) == bDef . version ( ) ; }
Returns if and only if both stage classes have defined the same version.
Returns if and only if both stage classes have defined the same version .