@Override
    public boolean equals(@Nullable Object o) {
        if (this == o) {
            return true;
        }

        if (!(o instanceof RouteBuilder)) {
            return false;
        }

        final RouteBuilder that = (RouteBuilder) o;
        return Objects.equals(pathMapping, that.pathMapping) &&
               methods.equals(that.methods) &&
               consumes.equals(that.consumes) &&
               produces.equals(that.produces) &&
               paramPredicates.equals(that.paramPredicates) &&
               headerPredicates.equals(that.headerPredicates) &&
               isFallback == that.isFallback &&
               excludedRoutes.equals(that.excludedRoutes);
    }
Returns a newly-created {@link Route} based on the properties of this builder.
core/src/main/java/com/linecorp/armeria/server/RouteBuilder.java