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> <groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId> <artifactId>commons-java</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.40-SNAPSHOT</version> <version>1.0.41-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -71,25 +71,25 @@ public class MetaIPType {
public MetaIPType to() { public MetaIPType to() {
return new MetaIPType(this.value); return new MetaIPType(this.value);
} }
}
public Enum from(MetaIPType metaIPType) { public static Enum from(MetaIPType metaIPType) {
switch (metaIPType.id) { switch (metaIPType.id) {
case 2: case 2:
return V6; return Enum.V6;
default: default:
return V4; return Enum.V4;
}
} }
}
public Enum from(String metaIPTypeKey) { public Enum from(String metaIPTypeKey) {
switch (metaIPTypeKey) { switch (metaIPTypeKey) {
case "V6": case "V6":
return V6; return Enum.V6;
default: default:
return V4; return Enum.V4;
}
} }
} }
} }