private static final boolean subPartMatch(String p,String t){
  return (p == t) || ((null != p) && ((t == WILD) || p.equals(t)));
}

private static final boolean subPartMatch ( String p , String t ) { return ( p == t ) || ( ( null != p ) && ( ( t == WILD ) || p . equals ( t ) ) ) ; }
two names are equal if they and either both are null or the name t is wild and the name p is non - null , or the two strings are equal .
