Skip to content

Type-safe upper-case, lower-case, and case-insensitive strings for Java

Notifications You must be signed in to change notification settings

MikeFHay/case-aware-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

case-aware-strings

Type-safe upper-case, lower-case, and case-insensitive strings for Java.

Ever check if your Set<String> {"foo", "bar", "baz"} contains "Foo"? That's probably a bug. Make a Set<LowerCase> instead, and never see that bug again.

All classes in this library are value-based, meaning they are final, immutable, do not (functionally) use reference equality, and do not have accessible constructors (they are constructed through static factory methods). I played with reflection to write some unit tests which assert this as much as possible.

About

Type-safe upper-case, lower-case, and case-insensitive strings for Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages