{"id":20741124,"url":"https://github.com/robtimus/try-parse","last_synced_at":"2025-10-24T17:03:38.016Z","repository":{"id":57722472,"uuid":"183899966","full_name":"robtimus/try-parse","owner":"robtimus","description":"Provides functionality to parse to Optional and its primitive versions","archived":false,"fork":false,"pushed_at":"2024-01-20T12:51:54.000Z","size":439,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T01:45:20.498Z","etag":null,"topics":["java","optional","optionals","parse"],"latest_commit_sha":null,"homepage":"https://robtimus.github.io/try-parse/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robtimus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-28T11:34:19.000Z","updated_at":"2022-05-27T11:33:14.000Z","dependencies_parsed_at":"2023-02-16T22:15:32.337Z","dependency_job_id":"716d75ce-675d-4a8b-97b4-766fa4a56c5b","html_url":"https://github.com/robtimus/try-parse","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Ftry-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Ftry-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Ftry-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robtimus%2Ftry-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robtimus","download_url":"https://codeload.github.com/robtimus/try-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243030805,"owners_count":20224666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","optional","optionals","parse"],"created_at":"2024-11-17T06:33:59.530Z","updated_at":"2025-10-24T17:03:37.905Z","avatar_url":"https://github.com/robtimus.png","language":"Java","readme":"# try-parse\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.robtimus/try-parse)](https://search.maven.org/artifact/com.github.robtimus/try-parse)\n[![Build Status](https://github.com/robtimus/try-parse/actions/workflows/build.yml/badge.svg)](https://github.com/robtimus/try-parse/actions/workflows/build.yml)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Atry-parse\u0026metric=alert_status)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Atry-parse)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.robtimus%3Atry-parse\u0026metric=coverage)](https://sonarcloud.io/summary/overall?id=com.github.robtimus%3Atry-parse)\n[![Known Vulnerabilities](https://snyk.io/test/github/robtimus/try-parse/badge.svg)](https://snyk.io/test/github/robtimus/try-parse)\n\nProvides functionality to parse to [Optional](https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html) and its primitive versions.\n\nCurrently there are five sets of methods:\n\n* `TryParse.tryParseInt`: a copy of `Integer.parseInt` to parse to [OptionalInt](https://docs.oracle.com/javase/8/docs/api/java/util/OptionalInt.html) instead of throwing exceptions.\n* `TryParse.tryParseUnsignedInt`: a copy of `Integer.parseUnsignedInt` to parse to [OptionalInt](https://docs.oracle.com/javase/8/docs/api/java/util/OptionalInt.html) instead of throwing exceptions.\n* `TryParse.tryParseLong`: a copy of `Long.parseLong` to parse to [OptionalLong](https://docs.oracle.com/javase/8/docs/api/java/util/OptionalLong.html) instead of throwing exceptions.\n* `TryParse.tryParseUnsignedLong`: a copy of `Long.parseUnsignedLong` to parse to [OptionalLong](https://docs.oracle.com/javase/8/docs/api/java/util/OptionalLong.html) instead of throwing exceptions.\n* `TryParse.tryParseBoolean`: a copy of `Boolean.parseBoolean` to parse to [Optional](https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html) instead of returning `false`.\n\nIn addition, there are several methods that delegate to an existing method, catching expected exceptions. These are not as fast as the above five sets, but can still be useful.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Ftry-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtimus%2Ftry-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtimus%2Ftry-parse/lists"}