@Test public void testToVersionlessIdStrings() { assertEquals( "::", ArtifactIdUtils.toVersionlessId( null, null, null, null ) ); assertEquals( "gid:aid:ext", ArtifactIdUtils.toVersionlessId( "gid", "aid", "ext", "" ) ); assertEquals( "gid:aid:ext:cls", ArtifactIdUtils.toVersionlessId( "gid", "aid", "ext", "cls" ) ); }
public static String toVersionlessId( Artifact artifact ) { String id = null; if ( artifact != null ) { id = toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier() ); } return id; }
ArtifactIdUtils { public static String toVersionlessId( Artifact artifact ) { String id = null; if ( artifact != null ) { id = toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier() ); } return id; } }
ArtifactIdUtils { public static String toVersionlessId( Artifact artifact ) { String id = null; if ( artifact != null ) { id = toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier() ); } return id; } private  ArtifactIdUtils(); }
ArtifactIdUtils { public static String toVersionlessId( Artifact artifact ) { String id = null; if ( artifact != null ) { id = toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier() ); } return id; } private  ArtifactIdUtils(); static String toId( Artifact artifact ); static String toId( String groupId, String artifactId, String extension, String classifier, String version ); static String toBaseId( Artifact artifact ); static String toVersionlessId( Artifact artifact ); static String toVersionlessId( String groupId, String artifactId, String extension, String classifier ); static boolean equalsId( Artifact artifact1, Artifact artifact2 ); static boolean equalsBaseId( Artifact artifact1, Artifact artifact2 ); static boolean equalsVersionlessId( Artifact artifact1, Artifact artifact2 ); }
ArtifactIdUtils { public static String toVersionlessId( Artifact artifact ) { String id = null; if ( artifact != null ) { id = toVersionlessId( artifact.getGroupId(), artifact.getArtifactId(), artifact.getExtension(), artifact.getClassifier() ); } return id; } private  ArtifactIdUtils(); static String toId( Artifact artifact ); static String toId( String groupId, String artifactId, String extension, String classifier, String version ); static String toBaseId( Artifact artifact ); static String toVersionlessId( Artifact artifact ); static String toVersionlessId( String groupId, String artifactId, String extension, String classifier ); static boolean equalsId( Artifact artifact1, Artifact artifact2 ); static boolean equalsBaseId( Artifact artifact1, Artifact artifact2 ); static boolean equalsVersionlessId( Artifact artifact1, Artifact artifact2 );  }