public StreetLegBean reverseStreetLeg(StreetLegV2Bean leg) { StreetLegBean bean = new StreetLegBean(); if (_factory.isStringSet(leg.getStreetName())) bean.setStreetName(leg.getStreetName()); if (_factory.isStringSet(leg.getPath())) bean.setPath(leg.getPath()); bean.setDistance(leg.getDistance()); return bean; }
public StreetLegV2Bean getStreetLeg(StreetLegBean leg) { StreetLegV2Bean bean = new StreetLegV2Bean(); bean.setStreetName(leg.getStreetName()); bean.setPath(leg.getPath()); bean.setDistance(leg.getDistance()); return bean; }