ing
This commit is contained in:
@@ -71,25 +71,25 @@ public class MetaIPType {
|
||||
public MetaIPType to() {
|
||||
return new MetaIPType(this.value);
|
||||
}
|
||||
}
|
||||
|
||||
public Enum from(MetaIPType metaIPType) {
|
||||
switch (metaIPType.id) {
|
||||
case 2:
|
||||
return V6;
|
||||
public static Enum from(MetaIPType metaIPType) {
|
||||
switch (metaIPType.id) {
|
||||
case 2:
|
||||
return Enum.V6;
|
||||
|
||||
default:
|
||||
return V4;
|
||||
}
|
||||
default:
|
||||
return Enum.V4;
|
||||
}
|
||||
}
|
||||
|
||||
public Enum from(String metaIPTypeKey) {
|
||||
switch (metaIPTypeKey) {
|
||||
case "V6":
|
||||
return V6;
|
||||
public Enum from(String metaIPTypeKey) {
|
||||
switch (metaIPTypeKey) {
|
||||
case "V6":
|
||||
return Enum.V6;
|
||||
|
||||
default:
|
||||
return V4;
|
||||
}
|
||||
default:
|
||||
return Enum.V4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user