From 7067e6f8767920717e66ac700d09d4c61ff53b16 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Tue, 24 Dec 2024 09:23:20 +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() {