{"id":19836506,"url":"https://github.com/guobinhit/awesome-tools","last_synced_at":"2026-07-27T18:31:48.956Z","repository":{"id":45431449,"uuid":"217464615","full_name":"guobinhit/awesome-tools","owner":"guobinhit","description":"Hey buddy, there are some awesome tools.","archived":false,"fork":false,"pushed_at":"2023-12-21T22:03:55.000Z","size":29,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-08T23:02:13.011Z","etag":null,"topics":["datetime","pagehelper","sequence"],"latest_commit_sha":null,"homepage":"","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/guobinhit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-10-25T06:19:40.000Z","updated_at":"2021-12-14T12:16:17.000Z","dependencies_parsed_at":"2024-01-17T04:19:25.438Z","dependency_job_id":null,"html_url":"https://github.com/guobinhit/awesome-tools","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/guobinhit/awesome-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Fawesome-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Fawesome-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Fawesome-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Fawesome-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guobinhit","download_url":"https://codeload.github.com/guobinhit/awesome-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guobinhit%2Fawesome-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35961441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-27T02:00:06.776Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["datetime","pagehelper","sequence"],"created_at":"2024-11-12T12:11:33.675Z","updated_at":"2026-07-27T18:31:48.921Z","avatar_url":"https://github.com/guobinhit.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# awesome-tools\n\n![author](https://img.shields.io/badge/author-chariesgavin-blueviolet.svg)![last commit](https://img.shields.io/github/last-commit/guobinhit/awesome-tools.svg)![issues](https://img.shields.io/github/issues/guobinhit/awesome-tools.svg)![stars](https://img.shields.io/github/stars/guobinhit/awesome-tools.svg)![forks](\thttps://img.shields.io/github/forks/guobinhit/awesome-tools.svg)![license](https://img.shields.io/github/license/guobinhit/awesome-tools.svg)\n\nSome awesome tools.\n\n## INDEX\n\n- [Monitor](#monitor)\n- [Sequence](#sequence)\n- [Page Info](#page-info)\n- [Date Time](#date-time)\n\n## Monitor\n\nUsing `MonitorWaterLineCalculator` class, we can calculate monitor water line, for example `TP95` :\n\n```java\n// create a calculator with water line 95\nMonitorWaterLineCalculator calculator = new MonitorWaterLineCalculator(95);\n// call calculate method to calculate value\ncalculator.calculate(param);\n// call getResult method to get calculate result\ncalculator.getResult();\n```\n\n## Sequence\n\nUsing `FlowNoGenerator` class, we can get a unique flow sequence, for example :\n\n```java\nString uniqueNo = FlowNoGenerator.generate(\"SC\");\n```\n\nor \n\n```java\nString uniqueNo = FlowNoGenerator.generate(\"SC\", \"BIC\");\n```\n\nas above, `generate` method have two signatures:\n\n- `generate(String sysCode)`\n\n- `generate(String sysCode, String bizCode)`\n\nThe first parameter is `sysCode` means system code, the second parameter is `bizCode` means business code.\n\nIf we only pass a parameter, it's stand by `sysCode`, and `bizCode` will be set `000` as a default value. \n\n## Page Info\n\nUsing `PageHelper\u003cT\u003e` class, we can divide page, for example：\n\n```java\nList\u003cString\u003e paramList = new ArrayList\u003cString\u003e();\nPageHelper\u003cString\u003e pageHelper = new PageHelper\u003cString\u003e(paramList);\nList\u003cString\u003e dividePageResultList = pageHelper.getList();\n```\n\nor \n\n```java\nList\u003cString\u003e paramList = new ArrayList\u003cString\u003e();\nPageHelper\u003cString\u003e pageHelper = new PageHelper\u003cString\u003e(1, 10, paramList);\nList\u003cString\u003e dividePageResultList = pageHelper.getList();\n```\n\nas above, `PageHelper` class have two construction method :\n\n- `PageHelper(List\u003cT\u003e list)`\n\n- `PageHelper(int pageNum, int pageSize, List\u003cT\u003e list)`\n\nThe first construction method will call the second construction method :\n\n- `pageNum` : the number of page\n- `pageSize` : the capacity of per page \n- `list` : the data list that we want to divide page\n\n If we instance `PageHelper` with the only parameter of `list`, the default value of  `pageNum`  is `1` and `pageSize` is `10`.\n\n## Date Time Util\n\nUsing `ThreadSafeDateUtil` class, we can get thread safe date time method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobinhit%2Fawesome-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguobinhit%2Fawesome-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguobinhit%2Fawesome-tools/lists"}