
org.opentripplanner.transit.model.framework.EntityById Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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 super FeedScopedId, ? extends E> mappingFunction);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy