https://github.com/igapyon/apachecommonslang4apex
Apache Commons Lang3 for Apex Language
https://github.com/igapyon/apachecommonslang4apex
Last synced: over 1 year ago
JSON representation
Apache Commons Lang3 for Apex Language
- Host: GitHub
- URL: https://github.com/igapyon/apachecommonslang4apex
- Owner: igapyon
- License: apache-2.0
- Created: 2022-12-24T00:29:02.000Z (over 3 years ago)
- Default Branch: devel
- Last Pushed: 2022-12-25T16:19:59.000Z (over 3 years ago)
- Last Synced: 2025-01-06T17:16:12.822Z (over 1 year ago)
- Language: Java
- Size: 634 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ApacheCommonsLang4Apex
'Apache Commons Lang3 for Apex Language'.
This is a port of StringUtils and CharUtils from Apache Commons Lang3 to Salesforce Apex Language.
Major methods have been ported. Some methods are not yet implemented.
## Usage
```java
System.assertEquals('...fghi...', StringUtils.abbreviate('abcdefghijklmno', 5, 10));
System.assertEquals('', StringUtils.defaultString(null));
System.assertEquals('bat', StringUtils.defaultString('bat'));
```
## Source
`commons-lang3-3.12.0-sources` based.
## License
- Apache License 2.0