/** * Creates an array of One2OneChannelInts using the specified ChannelDataStoreInt. * * @param n the number of channels to create in the array * @return the array of One2OneChannelIntImpl */ public static One2OneChannelInt[] create(int n, ChannelDataStoreInt store) { One2OneChannelInt[] channels = new One2OneChannelIntImpl[n]; for (int i = 0; i < n; i++) { channels[i] = new BufferedOne2OneChannelIntImpl(store); } return(channels); }
/** * Creates an array of One2OneChannelInts. * * @param n the number of channels to create in the array * @return the array of One2OneChannelIntImpl */ public static One2OneChannelInt[] create(int n) { One2OneChannelInt[] channels = new One2OneChannelIntImpl[n]; for (int i = 0; i < n; i++) { channels[i] = new One2OneChannelIntImpl(); } return(channels); }