@Override public Iterator<FilterSubscriber> iterator() { return m_pipeline.iterator(); }
@Override public E first() { return iterator().next(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }
@Override public E first() { return iterator().next(); }
private String reorderedImportsString(ImmutableSortedSet<Import> imports) { Preconditions.checkArgument(!imports.isEmpty(), "imports"); Import firstImport = imports.iterator().next(); // Pretend that the first import was preceded by another import of the same kind // (static or non-static), so we don't insert a newline there. boolean lastWasStatic = firstImport.isStatic; StringBuilder sb = new StringBuilder(); for (Import thisImport : imports) { if (lastWasStatic && !thisImport.isStatic) { // Blank line between static and non-static imports. sb.append(lineSeparator); } lastWasStatic = thisImport.isStatic; sb.append(thisImport); } return sb.toString(); }
private void initializePropertySources() { if (environment.getPropertySources().contains(PropertySourcesConstants.APOLLO_PROPERTY_SOURCE_NAME)) { //already initialized return; } CompositePropertySource composite = new CompositePropertySource(PropertySourcesConstants.APOLLO_PROPERTY_SOURCE_NAME); //sort by order asc ImmutableSortedSet<Integer> orders = ImmutableSortedSet.copyOf(NAMESPACE_NAMES.keySet()); Iterator<Integer> iterator = orders.iterator(); while (iterator.hasNext()) { int order = iterator.next(); for (String namespace : NAMESPACE_NAMES.get(order)) { Config config = ConfigService.getConfig(namespace); composite.addPropertySource(configPropertySourceFactory.getConfigPropertySource(namespace, config)); } } // clean up NAMESPACE_NAMES.clear(); // add after the bootstrap property source or to the first if (environment.getPropertySources() .contains(PropertySourcesConstants.APOLLO_BOOTSTRAP_PROPERTY_SOURCE_NAME)) { // ensure ApolloBootstrapPropertySources is still the first ensureBootstrapPropertyPrecedence(environment); environment.getPropertySources() .addAfter(PropertySourcesConstants.APOLLO_BOOTSTRAP_PROPERTY_SOURCE_NAME, composite); } else { environment.getPropertySources().addFirst(composite); } }
@Override protected synchronized Path computeNext() { checkOpen(); try { if (fileNames == null) { fileNames = view.snapshotWorkingDirectoryEntries().iterator(); } while (fileNames.hasNext()) { Name name = fileNames.next(); Path path = view.getWorkingDirectoryPath().resolve(name); if (filter.accept(path)) { return path; } } return endOfData(); } catch (IOException e) { throw new DirectoryIteratorException(e); } } }
.addAll(views.values()) .build() .iterator(); while (viewsIt.hasNext()) { AbstractTableMetadata view = viewsIt.next();
@Override public Iterator<ContentVersion> iterator() { return this.contentVersions.iterator(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }
@Override @GwtIncompatible("NavigableSet") public UnmodifiableIterator<E> descendingIterator() { return forward.iterator(); }