Releases: google/mug
Releases · google/mug
Release 7.0
StringFormattemplate supportSafeQueryandGoogleSqlfor injection-safe SQL- ErrorProne (
mug-errorprone) checks to provide compile-time safety forStringFormatparsing, formatting and templating. - Bazel build integration
Thanks to xingyutangyuan for the contribution to the ErrorProne plugin and Bazel integration!
Release 6.6
StringFormat- parsing structured data from strings.MoreCollectors.combining()to combine elements of a short stream with lambdas.
Release 6.5
Parallelizer.inParallel()collector (for parallel IO)partitioningBy()collectorgroupingByEach()collectorBiStream.min()BiStream.max()
Release 6.4
- Generic BinarySearch algorithm (beyond sorted arrays and lists)
- MoreIterables
Release 6.3
- Substring look-around (
immediatelyBetween(),followedBy(),precededBy()) - Substring negative look-around (
notImmediatelyBetween(),notFollowedBy(),notPredededBy())
Release 6.1
Release 6.0
- Substring
consecutive(),leading(),trailing(),between(String, String),word(). - MoreCollectors
partitioningBy(),minMax() - BiCollectors
minBy(),maxBy(). CaseBreaker
Release 5.9
- toMap(mapSupplier)
BiCollectorwith null support (works around https://bugs.openjdk.java.net/browse/JDK-8148463). - Substring splitKeyValuesAround():
first(',') .repeatedly() .splitKeyValuesAround(first('='), "k1=v1,k2=v2")
- asMap(Struct): protobuf
Structto POJO. - fromValue(Value): protobuf
Valueto POJO.
Release 5.8
- Protobuf utilities (
mug-protobuf, javadoc)
Release 5.7
Substring.Pattern.then()to support lookahead capability.addToIfAbsent()orremoveSubstring.PrefixandSubstring.SuffixfromStringBuilderSubstring.PrefixandSubstring.SuffiximplementCharSequence.Joiner.join(Collection).MoreStreams.groupConsecutive()