public boolean hasWildcardExtras() { if ( extras != null ) { for ( final ExtraCT extra : extras ) { if ( ExtraCT.WILDCARD.equals( extra.getClassifier() ) || ExtraCT.WILDCARD.equals( extra.getType() ) ) { return true; } } } return false; }
if ( extra.matches( tc ) ) new SimpleArtifactRef( ar.getGroupId(), ar.getArtifactId(), ar.getVersionSpec(), extraCT.getType(), extraCT.getClassifier() );
@Override public int compareTo( final ExtraCT other ) { int comp = getType().compareTo( other.getType() ); if ( comp == 0 ) { if ( classifier == null && other.classifier != null ) { return -1; } else if ( classifier != null && other.classifier == null ) { return 1; } else { comp = classifier.compareTo( other.classifier ); } } return comp; }
if ( extra.matches( tc ) ) new SimpleArtifactRef( ar.getGroupId(), ar.getArtifactId(), ar.getVersionSpec(), extraCT.getType(), extraCT.getClassifier() );
@Override public int compareTo( final ExtraCT other ) { int comp = getType().compareTo( other.getType() ); if ( comp == 0 ) { if ( classifier == null && other.classifier != null ) { return -1; } else if ( classifier != null && other.classifier == null ) { return 1; } else { comp = classifier.compareTo( other.classifier ); } } return comp; }
public boolean hasWildcardExtras() { if ( extras != null ) { for ( final ExtraCT extra : extras ) { if ( ExtraCT.WILDCARD.equals( extra.getClassifier() ) || ExtraCT.WILDCARD.equals( extra.getType() ) ) { return true; } } } return false; }
public boolean matches( final TypeAndClassifier tc ) { final String t = getType(); final String c = getClassifier(); final boolean typeMatch = WILDCARD.equals( t ) || t.equals( tc.getType() ); final boolean clsMatch = WILDCARD.equals( c ) || c.equals( tc.getClassifier() ); return typeMatch && clsMatch; }
public boolean matches( final TypeAndClassifier tc ) { final String t = getType(); final String c = getClassifier(); final boolean typeMatch = WILDCARD.equals( t ) || t.equals( tc.getType() ); final boolean clsMatch = WILDCARD.equals( c ) || c.equals( tc.getClassifier() ); return typeMatch && clsMatch; }