forked from plusone/plusone-commons
删除 YearQuarter#max 和 YearQuarter#min,使用 guava 的 Comparators#max 和 Comparators#min 即可。
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2024 the original author or authors.
|
||||
* Copyright 2024-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -281,14 +281,6 @@ public final class YearQuarter implements Comparable<YearQuarter>, Serializable
|
||||
return this.compareTo(other) > 0;
|
||||
}
|
||||
|
||||
public static YearQuarter min(YearQuarter yearQuarter1, YearQuarter yearQuarter2) {
|
||||
return yearQuarter1.compareTo(yearQuarter2) <= 0 ? yearQuarter1 : yearQuarter2;
|
||||
}
|
||||
|
||||
public static YearQuarter max(YearQuarter yearQuarter1, YearQuarter yearQuarter2) {
|
||||
return yearQuarter1.compareTo(yearQuarter2) >= 0 ? yearQuarter1 : yearQuarter2;
|
||||
}
|
||||
|
||||
// #endregion
|
||||
|
||||
// #region - toString
|
||||
|
Reference in New Issue
Block a user