KLALB UDP TEST

This commit is contained in:
Administrator
2024-01-30 16:54:09 +08:00
parent 722ab9710f
commit b4fccf3a03
67 changed files with 1977 additions and 929 deletions
+40
View File
@@ -0,0 +1,40 @@
package org.kne.cloud.network;
import java.util.Objects;
public class Protocol {
private String name;
public String getName() {
return name;
}
public Protocol(String name) {
super();
this.name = name;
}
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Protocol other = (Protocol) obj;
return Objects.equals(name, other.name);
}
@Override
public String toString() {
return name;
}
}