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

org.opentripplanner.transit.model.framework.EntityById Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.transit.model.framework;

import java.util.Collection;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;

/**
 * The purpose of this class is to provide a map from id to the corresponding entity. It is simply
 * an index of entities.
 *
 * @param  the entity type
 */
public interface EntityById extends ImmutableEntityById {
  void add(E entity);

  void addAll(Collection entities);

  int removeIf(Predicate test);

  int removeIf(Predicate test, Consumer callback);

  E computeIfAbsent(FeedScopedId id, Function mappingFunction);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy