@Test public void shouldGetTuplesByDefaultPort () { final Tuple tuple = new Tuple(); tuples.add( tuple ); final List<Tuple> tuples = this.tuples.getTuplesByDefaultPort(); assertThat( tuples, hasSize( 1 ) ); assertThat( tuples, hasItem( tuple ) ); }
@Override public TuplesImpl add ( final Tuple tuple ) { checkArgument( tuple != null ); add( DEFAULT_PORT_INDEX, tuple ); return this; }
TuplesImpl implements Tuples { @Override public TuplesImpl add ( final Tuple tuple ) { checkArgument( tuple != null ); add( DEFAULT_PORT_INDEX, tuple ); return this; } }
TuplesImpl implements Tuples { @Override public TuplesImpl add ( final Tuple tuple ) { checkArgument( tuple != null ); add( DEFAULT_PORT_INDEX, tuple ); return this; } TuplesImpl( final int portCount ); }
TuplesImpl implements Tuples { @Override public TuplesImpl add ( final Tuple tuple ) { checkArgument( tuple != null ); add( DEFAULT_PORT_INDEX, tuple ); return this; } TuplesImpl( final int portCount ); @Override TuplesImpl add( final Tuple tuple ); @Override TuplesImpl add( final List<Tuple> tuples ); @Override TuplesImpl add( final int portIndex, final Tuple tuple ); @Override void add( final int portIndex, final List<Tuple> tuples ); @Override List<Tuple> getTuples( final int portIndex ); List<Tuple> getTuplesModifiable( final int portIndex ); @Override Tuple getTupleOrNull( final int portIndex, final int tupleIndex ); @Override int getPortCount(); @Override int getTupleCount( final int portIndex ); @Override void clear(); TuplesImpl shallowCopy(); @Override boolean equals( final Object o ); @Override int hashCode(); @Override String toString(); }
TuplesImpl implements Tuples { @Override public TuplesImpl add ( final Tuple tuple ) { checkArgument( tuple != null ); add( DEFAULT_PORT_INDEX, tuple ); return this; } TuplesImpl( final int portCount ); @Override TuplesImpl add( final Tuple tuple ); @Override TuplesImpl add( final List<Tuple> tuples ); @Override TuplesImpl add( final int portIndex, final Tuple tuple ); @Override void add( final int portIndex, final List<Tuple> tuples ); @Override List<Tuple> getTuples( final int portIndex ); List<Tuple> getTuplesModifiable( final int portIndex ); @Override Tuple getTupleOrNull( final int portIndex, final int tupleIndex ); @Override int getPortCount(); @Override int getTupleCount( final int portIndex ); @Override void clear(); TuplesImpl shallowCopy(); @Override boolean equals( final Object o ); @Override int hashCode(); @Override String toString();  }