- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
RawClosedLineLocRef rawLocRef = new RawClosedLineLocRef(id, points); if (binData != null) { binData.setBinaryLastClosedLineLRP(lastLRP);
null, true); points.add(lastLRP); RawLocationReference rawLocRef = new RawClosedLineLocRef(id, points); return rawLocRef;
/** * {@inheritDoc} */ @Override public final RawLocationReference doEncoding(final Location location, final OpenLREncoderParameter parameter) throws OpenLRRuntimeException { Configuration properties = parameter.getConfiguration(); MapDatabase mdb = parameter.getMapDatase(); // check if the location is valid LocationCheck locCheck = new ClosedLineLocationCheck(); CheckResult retCode = locCheck.check(properties, mdb, location); if (!retCode.checkPassed()) { RawLocationReference invalid = new RawInvalidLocRef( location.getID(), retCode.getError(), location.getLocationType()); return invalid; } LocRefData lrd = new LocRefData(location); // initialize location reference data array and start encoding lrd.setLocRefPoints(generateLocRef(lrd, properties)); // check if the location reference meets all restrictions and adjust // length values if necessary LocationReferenceAdjust locRefAdjust = new ClosedLineLocRefAdjust(); locRefAdjust.adjustLocationReference(properties, lrd); RawLocationReference rawLocRef = new RawClosedLineLocRef( location.getID(), lrd.getLocRefPoints()); return rawLocRef; }