public FrameTrajectoryPointList(Class<F> frameTrajectoryPointClass) { trajectoryPoints = new RecyclingArrayList<>(frameTrajectoryPointClass); }
public SimpleTrajectoryPointList(Class<P> trajectoryPointClass) { trajectoryPoints = new RecyclingArrayList<>(trajectoryPointClass); }
/** * This method has to remain private. * It is used to register in the API a command. * @param commandClass */ private <C extends Command<C, M>, M extends Packet<M>> void registerNewCommand(Class<C> commandClass) { Builder<C> builer = createBuilderWithEmptyConstructor(commandClass); ConcurrentRingBuffer<C> newBuffer = new ConcurrentRingBuffer<>(builer, buffersCapacity); allBuffers.add(newBuffer); // This is retarded, but I could not find another way that is more elegant. Class<M> messageClass = builer.newInstance().getMessageClass(); commandClassToBufferMap.put(commandClass, newBuffer); messageClassToBufferMap.put(messageClass, newBuffer); commandsMap.put(commandClass, new RecyclingArrayList<>(buffersCapacity, commandClass)); listOfSupportedCommands.add(commandClass); listOfSupportedMessages.add(messageClass); }
coefficients = new RecyclingArrayList<>(new GenericTypeBuilder<TDoubleArrayList>() waypointPositions = new RecyclingArrayList<>(new GenericTypeBuilder<TDoubleArrayList>()
coefficients = new RecyclingArrayList<>(new GenericTypeBuilder<TDoubleArrayList>() waypointPositions = new RecyclingArrayList<>(new GenericTypeBuilder<TDoubleArrayList>()
originalWaypoints = new RecyclingArrayList<>(2, FramePoint.class); adjustedWaypoints = new RecyclingArrayList<>(2, FramePoint.class);