if (ip.isSetVersion()) { return ip.getVersion();
@Override public V3IP adapt(Ip from) { V3IP to = new V3IP(); if (from.isSetAddress()) { to.setAddress(from.getAddress()); } if (from.isSetGateway()) { to.setGateway(from.getGateway()); } if (from.isSetNetmask()) { to.setNetmask(from.getNetmask()); } if (from.isSetVersion()) { to.setVersion(from.getVersion().value()); } return to; } }