@ Override public E apply ( Iterator < E > consumable ) { dbc . precondition ( consumable != null , "consuming a null iterator" ) ; dbc . precondition ( consumable . hasNext ( ) , "no element to consume" ) ; return consumable . next ( ) ; }
Consumes the first element from the passed iterator .