match = platform.getName().isA(family);
/** * Determines if the current name is an instance of the specified platform family name. * * @param current the current name * @param name the platform family name * @return {@code true} if current is an instance of {@code name} */ private boolean isA(Name current, Name name) { if (name == current) { return true; } else { for (Name parent : current.getParents()) { if (isA(parent, name)) { return true; } } } return false; }
/** * Determines if this is an instance of the specified name. * * @param name the name to check * @return {@code true} if this is an instance of {@code name} */ public boolean isA(Name name) { return isA(this, name); }