@Override public String toString() { return getGroupId() + ':' + getArtifactId() + ':' + getExtension() + ( getClassifier().length() > 0 ? ':' + getClassifier() : "" ); }
public int compare( Exclusion e1, Exclusion e2 ) { if ( e1 == null ) { return ( e2 == null ) ? 0 : 1; } else if ( e2 == null ) { return -1; } int rel = e1.getArtifactId().compareTo( e2.getArtifactId() ); if ( rel == 0 ) { rel = e1.getGroupId().compareTo( e2.getGroupId() ); if ( rel == 0 ) { rel = e1.getExtension().compareTo( e2.getExtension() ); if ( rel == 0 ) { rel = e1.getClassifier().compareTo( e2.getClassifier() ); } } } return rel; }
public int compare( Exclusion e1, Exclusion e2 ) { if ( e1 == null ) { return ( e2 == null ) ? 0 : 1; } else if ( e2 == null ) { return -1; } int rel = e1.getArtifactId().compareTo( e2.getArtifactId() ); if ( rel == 0 ) { rel = e1.getGroupId().compareTo( e2.getGroupId() ); if ( rel == 0 ) { rel = e1.getExtension().compareTo( e2.getExtension() ); if ( rel == 0 ) { rel = e1.getClassifier().compareTo( e2.getClassifier() ); } } } return rel; }
@Override public String toString() { return getGroupId() + ':' + getArtifactId() + ':' + getExtension() + ( getClassifier().length() > 0 ? ':' + getClassifier() : "" ); }
private boolean matches( Exclusion exclusion, Artifact artifact ) { if ( !matches( exclusion.getArtifactId(), artifact.getArtifactId() ) ) { return false; } if ( !matches( exclusion.getGroupId(), artifact.getGroupId() ) ) { return false; } if ( !matches( exclusion.getExtension(), artifact.getExtension() ) ) { return false; } if ( !matches( exclusion.getClassifier(), artifact.getClassifier() ) ) { return false; } return true; }
private boolean matches( Exclusion exclusion, Artifact artifact ) { if ( !matches( exclusion.getArtifactId(), artifact.getArtifactId() ) ) { return false; } if ( !matches( exclusion.getGroupId(), artifact.getGroupId() ) ) { return false; } if ( !matches( exclusion.getExtension(), artifact.getExtension() ) ) { return false; } if ( !matches( exclusion.getClassifier(), artifact.getClassifier() ) ) { return false; } return true; }