package com.ankurm.gateway; import java.util.List; import java.util.Map; /** Maps a model hint to an ordered list of targets. An unknown hint is an error, not a default. */ public final class Routes { private final Map> table; public Routes(Map> table) { this.table = Map.copyOf(table); } public List get(String hint) { List t = table.get(hint); if (t == null) { throw new UnknownHintException(hint, table.keySet()); } return t; } }