From c78a2ab380e175d70a54117fe41c0ae49e994902 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Tue, 24 Dec 2024 09:31:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20YearQuarter#getQuarterValu?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/time/YearQuarter.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java b/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java index aed5093..966c7b9 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/time/YearQuarter.java @@ -138,11 +138,15 @@ public final class YearQuarter implements Comparable, Serializable // #region - Getters public int getYear() { - return year; + return this.year; } public Quarter getQuarter() { - return quarter; + return this.quarter; + } + + public int getQuarterValue() { + return this.quarter.getValue(); } public YearMonth firstYearMonth() {