All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.annot8.api.pipelines.NoOpOrderer Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
/* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.api.pipelines;

import io.annot8.api.components.ProcessorDescriptor;
import io.annot8.api.components.SourceDescriptor;
import java.util.Collection;

public final class NoOpOrderer implements PipelineOrderer {

  private static final NoOpOrderer INSTANCE = new NoOpOrderer();

  private NoOpOrderer() {
    // Private constructor for singleton
  }

  public static final NoOpOrderer getInstance() {
    return INSTANCE;
  }

  @Override
  public Collection orderProcessors(
      Collection processors) {
    return processors;
  }

  @Override
  public Collection orderSources(Collection sources) {
    return sources;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy