This commit is contained in:
crusader 2018-06-11 23:23:03 +09:00
parent 5b641d15e8
commit d80635dd57
2 changed files with 15 additions and 15 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId>
<packaging>jar</packaging>
<version>1.0.40-SNAPSHOT</version>
<version>1.0.41-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name>
<properties>

View File

@ -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;
}
}
}