public EncodingManager(List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags) { if (bytesForEdgeFlags != 4 && bytesForEdgeFlags != 8) throw new IllegalStateException("For 'edge flags' currently only 4 or 8 bytes supported"); this.bitsForEdgeFlags = bytesForEdgeFlags * 8; for (FlagEncoder flagEncoder : flagEncoders) { registerEncoder((AbstractFlagEncoder) flagEncoder); } if (edgeEncoders.isEmpty()) throw new IllegalStateException("No vehicles found"); }
public EncodingManager( List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags ) { if (bytesForEdgeFlags != 4 && bytesForEdgeFlags != 8) throw new IllegalStateException("For 'edge flags' currently only 4 or 8 bytes supported"); this.bitsForEdgeFlags = bytesForEdgeFlags * 8; for (FlagEncoder flagEncoder : flagEncoders) { registerEncoder((AbstractFlagEncoder) flagEncoder); } if (edgeEncoders.isEmpty()) throw new IllegalStateException("No vehicles found"); }
public EncodingManager(List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags) { if (bytesForEdgeFlags != 4 && bytesForEdgeFlags != 8) throw new IllegalStateException("For 'edge flags' currently only 4 or 8 bytes supported"); this.bitsForEdgeFlags = bytesForEdgeFlags * 8; for (FlagEncoder flagEncoder : flagEncoders) { registerEncoder((AbstractFlagEncoder) flagEncoder); } if (edgeEncoders.isEmpty()) throw new IllegalStateException("No vehicles found"); }
public EncodingManager(List<? extends FlagEncoder> flagEncoders, int bytesForEdgeFlags) { if (bytesForEdgeFlags != 4 && bytesForEdgeFlags != 8) throw new IllegalStateException("For 'edge flags' currently only 4 or 8 bytes supported"); this.bitsForEdgeFlags = bytesForEdgeFlags * 8; for (FlagEncoder flagEncoder : flagEncoders) { registerEncoder((AbstractFlagEncoder) flagEncoder); } if (edgeEncoders.isEmpty()) throw new IllegalStateException("No vehicles found"); }