X Tutup
Skip to content

Commit b8f9874

Browse files
committed
Merge pull request #65 from frvi/patch-1
Added static method udp in ExposedPort
2 parents c7bf107 + 2822e6b commit b8f9874

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/github/dockerjava/api/model/ExposedPort.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ public static ExposedPort tcp(int port) {
4444
return new ExposedPort("tcp", port);
4545
}
4646

47+
public static ExposedPort udp(int port) {
48+
return new ExposedPort("udp", port);
49+
}
50+
4751
public static ExposedPort parse(String serialized) {
4852
try {
4953
String[] parts = serialized.split("/");

0 commit comments

Comments
 (0)
X Tutup