public int hashCode()

in aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/FilterChainManager.java [285:311]


        public int hashCode() {
            String hashPath = targetPath;
            if (targetPath == null) {
                hashPath = "/";
            }

            String hashDispatcher = "";
            if (dispatcherType != null) {
                hashDispatcher = dispatcherType.name();
            }

            // clean up path
            String hashString = hashPath.trim();
            if (hashString.endsWith(PATH_PART_SEPARATOR)) {
                hashString = hashString.substring(0, hashString.length() - 1);
            }
            if (!hashString.startsWith(PATH_PART_SEPARATOR)) {
                hashString = PATH_PART_SEPARATOR + hashString;
            }
            hashString += ":" + hashDispatcher;

            if (servletName != null) {
                hashString += ":" + servletName;
            }

            return hashString.hashCode();
        }