mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
simplified if statement core.problem.solution.route.state.StateFactory
This commit is contained in:
parent
eca766cc52
commit
b48e2c404d
1 changed files with 2 additions and 4 deletions
|
|
@ -117,13 +117,11 @@ public class StateFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isReservedId(String stateId){
|
public static boolean isReservedId(String stateId){
|
||||||
if(reservedIds.contains(stateId)) return true;
|
return reservedIds.contains(stateId);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isReservedId(StateId stateId){
|
public static boolean isReservedId(StateId stateId){
|
||||||
if(reservedIds.contains(stateId.toString())) return true;
|
return reservedIds.contains(stateId.toString());
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void throwReservedIdException(String name) {
|
public static void throwReservedIdException(String name) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue