-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
List extensions from arbitrary platform
- Loading branch information
Showing
9 changed files
with
181 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
independent-projects/tools/artifact-api/src/main/java/io/quarkus/maven/StreamCoords.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package io.quarkus.maven; | ||
|
||
public class StreamCoords { | ||
final String platformKey; | ||
final String streamId; | ||
|
||
public static StreamCoords fromString(String stream) { | ||
final int colon = stream.indexOf(':'); | ||
String platformKey = colon <= 0 ? null : stream.substring(0, colon); | ||
String streamId = colon < 0 ? stream : stream.substring(colon + 1); | ||
return new StreamCoords(platformKey, streamId); | ||
} | ||
|
||
public StreamCoords(String platformKey, String streamId) { | ||
this.platformKey = platformKey; | ||
this.streamId = streamId; | ||
} | ||
|
||
public String getPlatformKey() { | ||
return platformKey; | ||
} | ||
|
||
public String getStreamId() { | ||
return streamId; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "StreamCoords{" + | ||
"platformKey='" + platformKey + '\'' + | ||
", streamId='" + streamId + '\'' + | ||
'}'; | ||
} | ||
} |
Oops, something went wrong.