public List < T > getNextItems ( Construction construction ) { List < T > items = new ArrayList < T > ( ) ; for ( T item : allItems ) { if ( construction . equals ( item . getNext ( ) ) ) { items . add ( item ) ; } } return items ; }
This method returns all items which have the given construction as next construction .