public WildcardID(String value){
  assert (value != null && value.contains(WILDCARD) && value.length() < 10);
  mValue=value;
  try {
    mPattern=Pattern.compile(value.replace(WILDCARD,REGEX_WILDCARD));
  }
 catch (  Exception e) {
    throw new IllegalArgumentException("Invalid regex pattern for alias ID value [" + value + "]",e);
  }
  mWeight=calculateWeight();
}

public WildcardID ( String value ) { assert ( value != null && value . contains ( WILDCARD ) && value . length ( ) < 10 ) ; mValue = value ; try { mPattern = Pattern . compile ( value . replace ( WILDCARD , REGEX_WILDCARD ) ) ; } catch ( Exception e ) { throw new IllegalArgumentException ( "Invalid regex pattern for alias ID value [" + value + "]" , e ) ; } mWeight = calculateWeight ( ) ; }
wildcard identifier for matching to string identifiers containing single - character ( * ) wildcard values . supports ordering from most - specific to least - specific using the build - in weighting calculation where identifier patterns containing fewer wildcards closer to the least significant digit will be weighted more heavily than identifier patterns containing more wildcards , or wildcard characters in the most significant digits .
