/** * {@inheritDoc} */ @Override public boolean hasNext() { while (!nextValueLoaded && source.hasNext()) { T entity; // Get the entity from the underlying source. entity = source.next().getEntity(); // Wrap the entity in a container. nextValue = containerFactory.createContainer(entity); nextValueLoaded = true; } return nextValueLoaded; }
/** * {@inheritDoc} */ @Override public boolean hasNext() { while (!nextValueLoaded && source.hasNext()) { T entity; // Get the entity from the underlying source. entity = source.next().getEntity(); // Wrap the entity in a container. nextValue = containerFactory.createContainer(entity); nextValueLoaded = true; } return nextValueLoaded; }
entityContainer = containerFactory.createContainer(entity);
entityContainer = containerFactory.createContainer(entity);